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