更新web_search_tool插件配置读取方式;更新bot配置模板版本并暂时关闭自动安装Python依赖
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user