mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-06-28 00:02:04 +00:00
🐛 修复tool_call消息未回传导致报错的问题
This commit is contained in:
parent
885c87160b
commit
5ac0597278
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue