Plugin directory / UI & Skins / dsh-model-cascade
dsh-model-cascade
Verified · install-tested on dsh jcleener
What it does
DSH 插件:模型选择三级级联菜单(供应商→系列→完整模型名)
Works — verified, early-stage project
DSH 插件:模型选择三级级联菜单(供应商→系列→完整模型名) It installs cleanly and boots without issues in our testing. It's early-stage but functional.
“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
README
dsh-model-cascade
DSH(DeepSeek Harness)插件:把会话框(已有会话与新建会话共用)的模型选择从「按供应商分组的列表」变成三级级联菜单:
供应商 → 系列 → 完整模型名,并在模型支持时可选思考强度。
功能
- 三级级联:
- 第一级 供应商 —— harness 实际配置的 API 路由组(如 DeepSeek / opencode-go / siliconflow / 火山引擎,取
group.name) - 第二级 系列 —— 模型 ID 最后一个
/与之后第一个-之间的文本(如deepseek-ai/DeepSeek-V4-Pro→DeepSeek) - 第三级 完整模型名 —— 完整模型 ID(如
deepseek-ai/DeepSeek-V4-Pro)
- 第一级 供应商 —— harness 实际配置的 API 路由组(如 DeepSeek / opencode-go / siliconflow / 火山引擎,取
- 思考强度(推理等级)与模型分开选择:点选第三级模型名即直接选中该模型并关闭菜单(是否支持思考强度都一样)。若所选模型在模型目录中暴露
reasoning.efforts(即支持选思考强度),可在菜单根部的「思考强度」快捷行单独调整当前模型的强度档位(默认 + 各档位),提交即携带reasoningEffort。模型与思考强度不再需要在同一个级联步骤里先后选择。 - 原生融合:注册在
conversation.input.model单座(priority: -1),覆盖自带的二级列表;数据与提交复用ui-model-selection的modelDirectories服务(session.models/session.selectModel),选择状态、连接重置处理、composer 阻塞行为与自带保持一致 - 菜单底部固定显示当前使用中的模型(路由组 + 模型名)
- 菜单样式复用 DSH 原生主题 token(
--dsw-alias-*/--dsw-specific-menu),明暗主题下观感一致
安装
dsh plugin --profile web add "github:jcleener/dsh-model-cascade"
# 或固定版本
dsh plugin --profile web add "github:jcleener/dsh-model-cascade#v0.1.0"
安装后重启 dsh web 生效。
使用
点击会话输入框的模型选择位,弹出级联菜单:先选供应商,再选系列,最后选完整模型名,点选即选中并关闭。若当前模型支持思考强度,可再次打开菜单用根部的「思考强度」行单独调整强度(默认或各档位);菜单底部显示当前使用中的模型(路由组 + 模型名)。
关闭
在 ~/.dsh/profiles/<profile>/cordis.patch.yml 中把该插件的 insert 段改为 disabled: true(或删除 insert 段),重启 dsh web 即回到自带的二级列表。
开发 / 结构
lib/index.js Host 半段(空 apply,仅作为 Loader 条目存在)
lib/client.js Client 半段(级联菜单 UI,纯 React + DSH 主题 token)
cordis.patch.yml 加载器补丁层(insert 声明)
许可证
MIT © 2025 jcleener
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install dsh-model-cascade for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
Web profile:
dsh plugin --profile web add github:jcleener/dsh-model-cascade Headless (CLI) profile:
dsh plugin --profile headless add github:jcleener/dsh-model-cascade Test report
Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.