From 039dc41c0b3684b33b354fb080ed84d464c95ae9 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Apr 2026 20:27:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20server.py=20=E7=A1=AC=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E8=A6=86=E7=9B=96=20dataclass=20?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=90=8C=E6=AD=A5=E4=B8=BA?= =?UTF-8?q?=2020/30/30/15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/server.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/core/server.py b/core/server.py index e38cf5d..133b0ac 100644 --- a/core/server.py +++ b/core/server.py @@ -67,9 +67,10 @@ class BackendServer: self._config = {"api_key": "", "base_url": "https://api.deepseek.com", "model": "deepseek-v4-flash"} self._tool_limits = { "persona_update_max": 1, - "task_update_max": 5, - "memory_query_max": 20, - "memory_update_max": 10, + "task_update_max": 20, + "task_query_max": 30, + "memory_query_max": 30, + "memory_update_max": 15, } self._message_history: list = [] @@ -158,9 +159,10 @@ class BackendServer: from .tool_limiter import ToolLimiter, ToolLimits limits = ToolLimits( persona_update_max=self._tool_limits.get("persona_update_max", 1), - task_update_max=self._tool_limits.get("task_update_max", 5), - memory_query_max=self._tool_limits.get("memory_query_max", 20), - memory_update_max=self._tool_limits.get("memory_update_max", 10), + task_update_max=self._tool_limits.get("task_update_max", 20), + task_query_max=self._tool_limits.get("task_query_max", 30), + memory_query_max=self._tool_limits.get("memory_query_max", 30), + memory_update_max=self._tool_limits.get("memory_update_max", 15), ) return ToolLimiter(limits)