🐛 修复tool_call消息未回传导致报错的问题

This commit is contained in:
FuQuan233 2026-05-19 10:54:18 +08:00
parent 885c87160b
commit 5ac0597278

View file

@ -496,6 +496,8 @@ async def process_messages(context_id: int, is_group: bool = True):
bot_id=str(event.self_id)
)
new_messages.append(llm_reply)
new_messages.append({
"role": "tool",
"tool_call_id": tool_call.id,