From ab012f63a7b08b968d12b9a81de7db2ac57b3df1 Mon Sep 17 00:00:00 2001 From: zcr Date: Thu, 5 Mar 2026 10:28:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E6=B2=A1=E6=9C=89=E5=8F=91=E9=80=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/chat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routers/chat.py b/src/routers/chat.py index 0f79fee..7c49b28 100644 --- a/src/routers/chat.py +++ b/src/routers/chat.py @@ -190,6 +190,7 @@ async def chat_stream(request: ChatRequest): subgraphs=True # 不再需要,行為已包含 ): + logger.info(event) # 取得 checkpoint_id(可選,視前端是否真的需要) latest_state = await app.aget_state(current_config) configurable = latest_state.config.get("configurable", {}) @@ -228,7 +229,7 @@ async def chat_stream(request: ChatRequest): } if isinstance(message, AIMessageChunk): - if message.tool_call_chunks: + if node_name != 'Researcher' and not message.tool_call_chunks: payload_out.update({ "type": "delta", "is_delta": True,