diff --git a/deploy/profile-scripts/llm_client.py b/deploy/profile-scripts/llm_client.py index 438d04e7..d006c1f9 100644 --- a/deploy/profile-scripts/llm_client.py +++ b/deploy/profile-scripts/llm_client.py @@ -187,6 +187,9 @@ def call_llm(prompt, model=None, max_tokens=4096, timeout=150, 永远不抛异常到调用方。 """ model_name = model or REASSESS_MODEL + # OCG/deepseek 对过小 max_tokens 会短路返回空(2026-07-22 实测 max_tokens=64 必空) + if max_tokens < 512: + max_tokens = 512 messages = [] if system: messages.append({"role": "system", "content": system})