From 7a9d4f0abd0b021599f62869bcf692955d6c1a93 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 9 Jul 2025 11:43:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E8=A2=AB=E9=94=99=E8=AF=AF=E5=9C=B0=E5=8F=91?= =?UTF-8?q?=E5=87=BA=E5=88=B0=E4=BA=86=E6=B6=88=E6=81=AF=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: #2060 --- astrbot/core/pipeline/process_stage/method/llm_request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astrbot/core/pipeline/process_stage/method/llm_request.py b/astrbot/core/pipeline/process_stage/method/llm_request.py index b1d9310c6..e3ef065e9 100644 --- a/astrbot/core/pipeline/process_stage/method/llm_request.py +++ b/astrbot/core/pipeline/process_stage/method/llm_request.py @@ -184,7 +184,8 @@ class LLMRequestSubStage(Stage): await event.send(resp.data["chain"]) continue # 对于其他情况,暂时先不处理 - if resp.type == "tool_call": + continue + elif resp.type == "tool_call": if self.streaming_response: # 用来标记流式响应需要分节 yield MessageChain(chain=[], type="break")