From 068bf1d29062b7ea40eac7b318d9cdbcb450c72b Mon Sep 17 00:00:00 2001 From: hmo Date: Fri, 14 Aug 2026 12:14:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20memory=5Fguardian=20max=5Ftokens=20100?= =?UTF-8?q?=E2=86=92512=E2=80=94=E2=80=94deepseek=E5=AF=B9=E8=BF=87?= =?UTF-8?q?=E5=B0=8Fmax=5Ftokens=E8=BF=94=E5=9B=9E=E7=A9=BA=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=AF=AF=E6=8A=A5LLM=E6=95=85=E9=9A=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/memory_guardian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/profile-scripts/memory_guardian.py b/deploy/profile-scripts/memory_guardian.py index 21906736..ef5e1508 100644 --- a/deploy/profile-scripts/memory_guardian.py +++ b/deploy/profile-scripts/memory_guardian.py @@ -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→512(deepseek对过小max_tokens返回空) }).encode() req = urllib.request.Request( "http://localhost:8643/v1/chat/completions",