mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 16:39:52 +00:00
✨新增控制加载内置工具包的配置项
This commit is contained in:
@ -67,7 +67,8 @@ target_list = [] # 记录需保存历史上下文的列表
|
||||
async def _preload_tools():
|
||||
tools_dir = store.get_plugin_data_dir() / "tools"
|
||||
os.makedirs(tools_dir, exist_ok=True)
|
||||
tools.load_tools(Path(__file__).parent / "tools")
|
||||
if config.marshoai_load_builtin_tools:
|
||||
tools.load_tools(Path(__file__).parent / "tools")
|
||||
tools.load_tools(store.get_plugin_data_dir() / "tools")
|
||||
|
||||
@add_usermsg_cmd.handle()
|
||||
|
Reference in New Issue
Block a user