dsh-model-gate
单模型禁用网关:在发现路径中隐藏被拒绝的模型,通过协议内错误块阻止调度,并提供黑名单设置界面。
AI 分析
核心用途是提供模型和提供商的禁用黑名单管理。适合需要精细化控制可用模型、防止误调用高资费或特定模型的DSH管理员。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:OPaimon/dsh-model-gate说明文档
阅读完整 README ↗Usage
Edit the denylist section in ~/.dsh/settings.yaml - changes hot-apply, no
restart:
llm-model-gate:
disabledProviders:
- openrouter
disabledModels:
- "*/kimi-k2.7-code" # deny this model id on every provider
- "token-rhythm/glm-5" # deny one exact provider/model pair
Matching is exact and case-sensitive. A disabled provider route hides all of
its models. Model ids listed with a * + slash prefix are denied on every
provider, including dedicated routes (e.g. DeepSeek direct) that accept
explicit directory-external ids.