mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: mcp images path error
This commit is contained in:
@@ -1274,7 +1274,7 @@ def request_picture(chat_id: int, record_id: int, chart: dict, data: dict):
|
||||
|
||||
requests.post(url=settings.MCP_IMAGE_HOST, json=request_obj)
|
||||
|
||||
request_path = urllib.parse.urljoin(settings.MCP_IMAGE_HOST, f"{file_name}.png")
|
||||
request_path = urllib.parse.urljoin(settings.SERVER_IMAGE_HOST, f"{file_name}.png")
|
||||
|
||||
return request_path
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ class Settings(BaseSettings):
|
||||
MCP_IMAGE_PATH: str = '/opt/sqlbot/images'
|
||||
EXCEL_PATH: str = '/opt/sqlbot/data/excel'
|
||||
MCP_IMAGE_HOST: str = 'http://localhost:3000'
|
||||
SERVER_IMAGE_HOST: str = 'https://YOUR_SERVE_IP:MCP_PORT/images/'
|
||||
SERVER_IMAGE_HOST: str = 'http://YOUR_SERVE_IP:MCP_PORT/images/'
|
||||
|
||||
LOCAL_MODEL_PATH: str = '/opt/sqlbot/models'
|
||||
DEFAULT_EMBEDDING_MODEL: str = 'shibing624/text2vec-base-chinese'
|
||||
|
||||
Reference in New Issue
Block a user