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
@@ -12,6 +12,7 @@ limits:
|
||||
max_plugin_buffer_bytes: 1048576
|
||||
max_host_calls_per_hook: 64
|
||||
upstream_timeout_seconds: 120
|
||||
llm: []
|
||||
plugins:
|
||||
- id: request-rewrite
|
||||
file: plugins/request_rewrite.lua
|
||||
|
||||
Reference in new issue
Block a user