feat(LLM): 增加可扩展模型插件能力

新增顶层 LLM 注册配置、插件授权列表和 guard 类型适配器。\n模型由独立 Python 进程加载,通过受限 IPC 为 Lua 提供 host.llm.list、host.llm.call 和可调用接口。\n增加 Qwen3Guard 结果解析、流式审核示例、可选依赖、Docker 构建文件和协议测试。
This commit is contained in:
starrrLight committed 2026-10-11 17:39:03 +08:00
1 parent 8c1d243b51
commit b331927773
11 files changed
+693 -4

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
FROM python:3.13-slim
WORKDIR /service
COPY pyproject.toml ./
COPY middleware ./middleware
RUN pip install --no-cache-dir ".[guard]"
COPY config.yaml ./
COPY plugins ./plugins
ENV HF_HUB_OFFLINE=1
USER 65532:65532
EXPOSE 8080
CMD ["agent-safe-middleware", "--config", "/service/config.yaml"]