添加小棉工具弃用提示

This commit is contained in:
Asankilp 2024-12-24 00:29:48 +08:00
parent 1c74ddca7d
commit e4d9fef670
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -190,3 +190,4 @@ docs/.vitepress/dist
result.json result.json
data/* data/*
marshoplugins/*

View File

@ -117,6 +117,9 @@ async def _preload_tools():
logger.info( logger.info(
"如果启用小棉工具后使用的模型出现报错,请尝试将 MARSHOAI_ENABLE_TOOLS 设为 false。" "如果启用小棉工具后使用的模型出现报错,请尝试将 MARSHOAI_ENABLE_TOOLS 设为 false。"
) )
logger.opt(colors=True).warning(
"<y>小棉工具已被弃用,可能会在未来版本中移除。</y>"
)
@driver.on_startup @driver.on_startup

View File

@ -2,9 +2,6 @@ import json
from pathlib import Path from pathlib import Path
from nonebot import require from nonebot import require
require("nonebot_plugin_localstore")
from nonebot_plugin_localstore import get_plugin_data_file # type: ignore from nonebot_plugin_localstore import get_plugin_data_file # type: ignore
from nonebot_plugin_marshoai.plugin import ( # type: ignore from nonebot_plugin_marshoai.plugin import ( # type: ignore