From 5ac05972786fa34dd09f929a65f42cbdb70322a6 Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Tue, 19 May 2026 10:54:18 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8Dtool=5Fcal?= =?UTF-8?q?l=E6=B6=88=E6=81=AF=E6=9C=AA=E5=9B=9E=E4=BC=A0=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nonebot_plugin_llmchat/__init__.py b/nonebot_plugin_llmchat/__init__.py index 1ac68dd..76365ae 100755 --- a/nonebot_plugin_llmchat/__init__.py +++ b/nonebot_plugin_llmchat/__init__.py @@ -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, From 42f60625cabd294af1a1efc7f4449c2b8b0e49d0 Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Tue, 19 May 2026 13:37:01 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E8=B0=83=E7=94=A8=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=AF=8F=E4=B8=AA=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E7=9A=84=E5=9B=9E=E5=A4=8D=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=A2=AB=E6=AD=A3=E7=A1=AE=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_llmchat/__init__.py b/nonebot_plugin_llmchat/__init__.py index 76365ae..92a3060 100755 --- a/nonebot_plugin_llmchat/__init__.py +++ b/nonebot_plugin_llmchat/__init__.py @@ -475,6 +475,8 @@ async def process_messages(context_id: int, is_group: bool = True): await send_split_messages(handler, message.content) # 处理每个工具调用 + new_messages.append(llm_reply) + for tool_call in message.tool_calls: tool_name = tool_call.function.name tool_args = json.loads(tool_call.function.arguments) @@ -496,8 +498,6 @@ 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, From 66f1f71a023754fd59d510fa5a8e313ea4305ee2 Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Tue, 19 May 2026 15:31:46 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=96=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E8=87=B30.5.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7e4c03f..5042eb3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nonebot-plugin-llmchat" -version = "0.5.1" +version = "0.5.2" description = "Nonebot AI group chat plugin supporting multiple API preset configurations" license = "GPL" authors = ["FuQuan i@fuquan.moe"]