mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-08-13 10:09:27 +00:00
♻️ 大幅重构,拆分模块,增加一些MCP相关限制
This commit is contained in:
parent
41e6aeacb9
commit
0d6771eca6
17 changed files with 1142 additions and 912 deletions
11
tests/bootstrap.py
Normal file
11
tests/bootstrap.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""加载子模块而不执行NoneBot插件注册入口。"""
|
||||
|
||||
from pathlib import Path
|
||||
import sys
|
||||
from types import ModuleType
|
||||
|
||||
PACKAGE_NAME = "nonebot_plugin_llmchat"
|
||||
if PACKAGE_NAME not in sys.modules:
|
||||
package = ModuleType(PACKAGE_NAME)
|
||||
package.__path__ = [str(Path(__file__).parents[1] / PACKAGE_NAME)]
|
||||
sys.modules[PACKAGE_NAME] = package
|
||||
Loading…
Add table
Add a link
Reference in a new issue