From 65bf38ea8ea4eae7ff27837d811bd52492016899 Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Wed, 13 Aug 2025 19:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0web=5Fsearch=5Ftool=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E9=85=8D=E7=BD=AE=E8=AF=BB=E5=8F=96=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=EF=BC=9B=E6=9B=B4=E6=96=B0bot=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=89=88=E6=9C=AC=E5=B9=B6=E6=9A=82=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E8=87=AA=E5=8A=A8=E5=AE=89=E8=A3=85Python=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/built_in/web_search_tool/plugin.py | 4 ++-- template/bot_config_template.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/built_in/web_search_tool/plugin.py b/src/plugins/built_in/web_search_tool/plugin.py index 440ca4847..a71fab191 100644 --- a/src/plugins/built_in/web_search_tool/plugin.py +++ b/src/plugins/built_in/web_search_tool/plugin.py @@ -644,8 +644,8 @@ class WEBSEARCHPLUGIN(BasePlugin): def get_plugin_components(self) -> List[Tuple[ComponentInfo, Type]]: enable_tool =[] # 从主配置文件读取组件启用配置 - if config_api.get_global_config.web_search.enable_web_search_tool: + if config_api.get_global_config("web_search.enable_web_search_tool", True): enable_tool.append((WebSurfingTool.get_tool_info(), WebSurfingTool)) - if config_api.get_global_config.web_search.enable_url_tool: + if config_api.get_global_config("web_search.enable_url_tool", True): enable_tool.append((URLParserTool.get_tool_info(), URLParserTool)) return enable_tool diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index 86a9630a2..1bb617d63 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -1,5 +1,5 @@ [inner] -version = "6.3.0" +version = "6.3.1" #----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读---- #如果你想要修改配置文件,请递增version的值 @@ -262,7 +262,7 @@ library_log_levels = { "aiohttp" = "WARNING"} # 设置特定库的日志级别 [dependency_management] # 插件Python依赖管理配置 # 是否启用自动安装Python依赖包(主开关) -auto_install = true +auto_install = false #暂时关闭一下因为还用不了 # 安装超时时间(秒) auto_install_timeout = 300