Procházet zdrojové kódy

选址提示词修改

liutao před 1 měsícem
rodič
revize
5e9d7e288e
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      landsite_agent/config.py
  2. 1 1
      landsite_agent/sql_generator.py

+ 1 - 1
landsite_agent/config.py

@@ -24,7 +24,7 @@ model_list: Dict[str, Dict[str, Any]] = {
     },
     "zjstai": {
         "api_key": "none",
-        "api_base": "http://172.27.27.20:20331/v1",
+        "api_base": "http://172.27.27.72:1025/v1",
         "model_name": "DeepSeek-R1-Distill-Qwen-32B",
     }
 }

+ 1 - 1
landsite_agent/sql_generator.py

@@ -216,7 +216,7 @@ class SQLGenerator:
 
                 yield json.dumps({"type": "end", "content": "SQL生成完成"}, ensure_ascii=False) + "\n"
             except Exception as e:
-                print(f"Error details: {traceback.format_exc()}")
+                traceback.print_exc()
                 yield json.dumps({
                     "type": "error",
                     "content": f"生成SQL时发生错误: {str(e)}"