fix: memory_guardian max_tokens 100→512——deepseek对过小max_tokens返回空导致误报LLM故障

This commit is contained in:
hmo
2026-08-14 12:14:48 +08:00
parent b70ef8914d
commit 068bf1d290
+1 -1
View File
@@ -44,7 +44,7 @@ def cleanup_memory():
"这些应该放在MEMORY.md而非共享memory。"
"用memory(action='remove', old_text='唯一子串')逐条删除。"
"完成后回复'清理完成'"}],
"max_tokens": 100,
"max_tokens": 512, # 2026-08-14 修复:100→512deepseek对过小max_tokens返回空)
}).encode()
req = urllib.request.Request(
"http://localhost:8643/v1/chat/completions",