feat:修复投顾agent功能
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ async def generate_sql(
|
||||
},
|
||||
]
|
||||
try:
|
||||
output = await llm_client.chat(messages, temperature=0)
|
||||
output = await llm_client.chat(messages, temperature=0, max_tokens=256)
|
||||
except Exception as exc: # noqa: BLE001 统一收敛模型异常
|
||||
raise SqlGenerationError("SQL 模型调用失败") from exc
|
||||
sql = _clean_model_output(output)
|
||||
|
||||
Reference in New Issue
Block a user