feat:修复投顾agent功能
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user