Skip to content

Commit af258c5

Browse files
authored
Merge pull request #2068 from AstrBotDevs/fix-tool-call-result-wrongly-sent
Fix: 修复工具调用被错误地发出到了消息平台上
2 parents b0eb573 + 7a9d4f0 commit af258c5

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)