From 1c38412e428364b9fa8988749630bccd4c27aa06 Mon Sep 17 00:00:00 2001 From: Liang Jiaqing Date: Wed, 1 Apr 2026 09:35:37 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E6=81=A2=E5=A4=8D=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=AD=A3=E5=88=99=E6=9C=80=E5=B0=8F=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llmcore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmcore.py b/llmcore.py index d6ef43e..c2c64f3 100644 --- a/llmcore.py +++ b/llmcore.py @@ -748,7 +748,7 @@ class ToolClient: remaining_text = re.sub(think_pattern, "", remaining_text, flags=re.DOTALL) tool_calls = []; json_strs = []; errors = [] - tool_pattern = r"<(?:tool_use|tool_call)>((?:(?!<(?:tool_use|tool_call)>).){0,}?)"} + tool_pattern = r"<(?:tool_use|tool_call)>((?:(?!<(?:tool_use|tool_call)>).){15,}?)"} tool_all = re.findall(tool_pattern, remaining_text, re.DOTALL) if tool_all: