@@ -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",
}
@@ -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)}"