- plugin-llm 新 crate:llm/upstreams/usage_filter/llm_audit/stats/handlers/api/config/models/store - 下行契约(downstream_key/identity/check_quota/fail)与记账原语(usage::bump/read/bump_day)已下沉 ipass-core - usage_filter 改走 loc::enabled(Switch::Llm) + core::plugin::ctx_index(解除对 gateway 私有 ModuleConfig 的依赖) - gateway 收缩为壳:LlmHandler/LlmHealthHandler/AuditHandler 随 LlmPlugin 装配; /api/admin/trend 留 gateway(需 users+upstreams+apix 三方名册,组合根职责) - 行为等价:262 项回归全绿(gateway 102 + llm 160)
18 lines
454 B
TOML
18 lines
454 B
TOML
[package]
|
||
name = "plugin-llm"
|
||
version = "2.0.0"
|
||
edition.workspace = true
|
||
publish = false
|
||
description = "iPass 插件:LLM 路由 / 上游管理 / 配额计费 / 对话审计 / 用量趋势"
|
||
|
||
[lib]
|
||
# 只有 gateway 是 cdylib;插件一律 rlib(跨 .so 传 Rust 类型会双重 free)
|
||
crate-type = ["rlib"]
|
||
|
||
[dependencies]
|
||
ngx.workspace = true
|
||
nginx-sys.workspace = true
|
||
serde.workspace = true
|
||
serde_json.workspace = true
|
||
ipass-core.workspace = true
|