Skip to content

Commit 7a9d4f0

Browse files
committed
fix: 修复工具调用被错误地发出到了消息平台上
fixes: #2060
1 parent 71290f0 commit 7a9d4f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

astrbot/core/pipeline/process_stage/method/llm_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ async def requesting():
184184
await event.send(resp.data["chain"])
185185
continue
186186
# 对于其他情况,暂时先不处理
187-
if resp.type == "tool_call":
187+
continue
188+
elif resp.type == "tool_call":
188189
if self.streaming_response:
189190
# 用来标记流式响应需要分节
190191
yield MessageChain(chain=[], type="break")

0 commit comments

Comments
 (0)