guard: 判定模型切到 deepseek-v4-pro(时延减半、抖动收敛)

该网关 /v1/models 仅两个模型,实测 17 次判定:
- deepseek-v4-pro 中位 1.08s(0.59~1.30s)
- deepseek-flash   中位 1.39s(1.15~4.62s)
- 16KB 长输入:v4-pro 1.08s vs flash 2.13s(prefill 差距)
- 7 组风险/正常样本,两模型判定结果完全一致,无漏放/误拦
verify_plugins.py 全量回归 84/84,真实后端平均 1035ms(原 2.1s)。
模型名改为可用 SAFETY_MODEL 覆盖。
This commit is contained in:
Автомата Калашникова committed 2026-11-27 18:57:22 +08:00
1 parent 1cc154dff8
commit 7b2f709b86
3 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ plugins:
base_url: https://ai.leapstella.com/v1
# 复制本文件为 config.yaml 后填入你自己的密钥,config.yaml 已被 .gitignore 忽略
api_key: "sk-REPLACE_ME"
model: deepseek-flash
model: deepseek-v4-pro
# 拦截状态码:400 = OpenAI 内容策略拒绝的标准形态
block_status: 400
# incremental: 攒够 flush_chars 且遇到句边界就审核放行(有增量输出)