feat(LLM): 增加可扩展模型插件能力
新增顶层 LLM 注册配置、插件授权列表和 guard 类型适配器。\n模型由独立 Python 进程加载,通过受限 IPC 为 Lua 提供 host.llm.list、host.llm.call 和可调用接口。\n增加 Qwen3Guard 结果解析、流式审核示例、可选依赖、Docker 构建文件和协议测试。
This commit is contained in:
1 parent
8c1d243b51
commit
b331927773
11 files changed
+693
-4
No files matched your search
@@ -17,6 +17,7 @@ dependencies = [
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest>=8,<10", "pytest-asyncio>=1,<2", "httpx>=0.28,<1", "ruff>=0.14,<1"]
|
||||
guard = ["torch>=2.2", "transformers>=4.51,<5"]
|
||||
|
||||
[project.scripts]
|
||||
agent-safe-middleware = "middleware.cli:main"
|
||||
|
||||
Reference in new issue
Block a user