From 5bd92dfda6fde5f8cda847013a845b78672df222 Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Fri, 31 Oct 2025 17:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20fix=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/mcpclient.py | 2 +- nonebot_plugin_llmchat/onebottools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_llmchat/mcpclient.py b/nonebot_plugin_llmchat/mcpclient.py index 09f5b73..929caca 100644 --- a/nonebot_plugin_llmchat/mcpclient.py +++ b/nonebot_plugin_llmchat/mcpclient.py @@ -173,7 +173,7 @@ class MCPClient: # 检查是否是OneBot工具 if tool_name.startswith("ob__"): return self.onebot_tools.get_friendly_name(tool_name) - + # MCP工具处理 server_name, real_tool_name = tool_name.split("___") return (self.server_config[server_name].friendly_name or server_name) + " - " + real_tool_name diff --git a/nonebot_plugin_llmchat/onebottools.py b/nonebot_plugin_llmchat/onebottools.py index ff19fa2..166e0d4 100644 --- a/nonebot_plugin_llmchat/onebottools.py +++ b/nonebot_plugin_llmchat/onebottools.py @@ -15,7 +15,7 @@ class OneBotTools: "type": "function", "function": { "name": "ob__mute_user", - "description": "禁言指定用户一段时间。需要机器人有管理员权限。不要随便禁言别人,你应该只听群主或者管理员你的话。", + "description": "禁言指定用户一段时间。需要机器人有管理员权限。不能随便禁言成员,你应该听从管理员的指令。", "parameters": { "type": "object", "properties": {