Compare commits

...

3 commits

Author SHA1 Message Date
66f1f71a02 🔖 更新版本号至0.5.2
Some checks failed
Pyright Lint / Pyright Lint (push) Has been cancelled
Ruff Lint / Ruff Lint (push) Has been cancelled
2026-05-19 15:31:46 +08:00
42f60625ca 🐛 修复工具调用处理逻辑,确保每个工具调用的回复消息被正确添加 2026-05-19 13:37:01 +08:00
5ac0597278 🐛 修复tool_call消息未回传导致报错的问题 2026-05-19 10:54:18 +08:00
2 changed files with 3 additions and 1 deletions

View file

@ -475,6 +475,8 @@ async def process_messages(context_id: int, is_group: bool = True):
await send_split_messages(handler, message.content) await send_split_messages(handler, message.content)
# 处理每个工具调用 # 处理每个工具调用
new_messages.append(llm_reply)
for tool_call in message.tool_calls: for tool_call in message.tool_calls:
tool_name = tool_call.function.name tool_name = tool_call.function.name
tool_args = json.loads(tool_call.function.arguments) tool_args = json.loads(tool_call.function.arguments)

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "nonebot-plugin-llmchat" name = "nonebot-plugin-llmchat"
version = "0.5.1" version = "0.5.2"
description = "Nonebot AI group chat plugin supporting multiple API preset configurations" description = "Nonebot AI group chat plugin supporting multiple API preset configurations"
license = "GPL" license = "GPL"
authors = ["FuQuan i@fuquan.moe"] authors = ["FuQuan i@fuquan.moe"]