feat:修复投顾agent功能

This commit is contained in:
2026-09-15 09:24:30 +08:00
parent b75ab5ecdc
commit 9660323ff2
7 changed files with 150 additions and 30 deletions
+4
View File
@@ -200,6 +200,10 @@ class LLMClient:
"max_tokens": request_max_tokens,
"stream": False,
}
# SQL/分类等短输出任务不需要深度思考;DeepSeek-V4 若开启思考,
# 可能耗尽 token 预算而返回空的 content。
if model.lower().startswith("deepseek-v4"):
payload["enable_thinking"] = False
try:
client = self._client_for(backend)
r = await client.post(url, headers=backend.headers, json=payload)