v0.1.0
dsh-model-gate v0.1.0
Single-model disable gate for DSH. Deny whole provider routes or exact provider/model pairs — denied models disappear from every discovery path (web selector, session/task model catalogs, API request validation), and any dispatch that still reaches them terminates with a single in-protocol MODEL_DISABLED error chunk. Non-destructive overlay: removing entries or the plugin restores everything exactly. Ships a web settings section「模型门禁」reading the unfiltered catalog with per-model switches.
面向 DSH 的单模型禁用门禁:按整条 provider 路由或精确 provider/model 配置拒绝名单——被禁模型从一切发现路径消失,仍到达的调用以协议内 MODEL_DISABLED 错误 chunk 终止。非破坏性覆盖层,卸载即原样恢复。附设置页「模型门禁」面板(读未过滤目录,逐模型开关)。
Install
tar -xzf dsh-model-gate-0.1.0.tgz # -> ./package/
dsh plugin --profile web add ./package
# restart DSH once; denylist edits afterwards hot-applyPrebuilt lib/ included — no build step, no pnpm allowBuilds prompt.
Verified
- DSH 0.1.x-rc, web profile · unit tests 17/17
- Discovery hiding across selector / task_models / catalogs / API validation
- Dispatch backstop, including star-wildcards on dedicated routes
- Uninstall zero-residue · denylist persists across restarts