dsh-model-aliases
Manifest validProvides persistent model aliases for DeepSeek Harness Web: bind provider, model, and inference tier into a memorable name, and switch between them quickly via a single selector next to the input field.
dsh-model-aliases
给模型配置起个好记的名字,然后在 DeepSeek Harness 会话里一键切换。
在输入框旁用别名一键切换,原生“模型 / 推理等级”选择器同时保留:

在 设置 → 模型别名 中集中编辑:

安装
dsh plugin --profile web add github:ZhangZiFei/dsh-model-aliases
重启当前 dsh web 进程并刷新页面,然后打开 设置 → 模型别名。
当前兼容目标为 DeepSeek Harness Web 0.1.2-rc.1。 插件已经声明 DSH Bundle,安装命令会自动把对应 Patch 加入 Web Profile,无需手工编辑 cordis.patch.yml。
你会得到
- 一个别名代表完整模型配置——名称同时绑定提供商、模型和可选推理等级
- 与原生选择器并存——别名选择器位于输入框工具行,原生“模型 / 推理等级”控件保持可见
- 双向同步——选择别名会改写原生控件的内容;在原生控件里手动选择模型或推理等级,别名选择器也会同步显示对应别名或“自定义”
- 原生模型选择链路——所有选择仍交给 DSH
ModelDirectory.select()校验和应用 - 持久化设置——配置写入 DSH 的
model-aliases设置命名空间,重启后继续生效 - 目录感知且支持自定义——可从当前会话目录下拉选择提供商、模型和推理等级,也可在同一字段直接输入自定义 ID
- 安全保留失效配置——目录中暂时不存在的别名不会丢失,但会禁用并说明原因
- 准确显示当前状态——完整选择匹配别名时显示别名,否则显示“自定义”
- 遵守会话限制——锁定状态下禁止切换,被寻址的子代理会话不显示选择器
使用
- 打开 设置 → 模型别名。
- 添加别名,从下拉菜单选择或直接输入提供商、模型以及可选推理等级。
- 调整顺序并保存。
- 回到会话,在输入框右下角用别名选择器切换;旁边的原生模型选择器会同步显示当前模型和推理等级,也可以直接在那里手动选择。
推理等级选择“提供商默认”时,插件不会写入虚构的默认值,而是保留适配器或提供商的原始行为。
首次使用会写入预置别名;如果保存空列表,插件也会自动恢复预置值。预置路由不在当前模型目录时会保留,但不能被选择。
设置格式
配置保存在 DSH 设置文档的 model-aliases 分节:
model-aliases:
aliases:
- name: 日常
provider: deepseek
model: deepseek-chat
- name: 深度推理
provider: openai
model: o3
reasoningEffort: high
规则:
- 名称、提供商、模型以及存在的推理等级必须是首尾无空白的非空字符串
- 别名名称必须唯一
- 提供商、模型和推理等级组成的完整选择必须唯一
- 省略
reasoningEffort表示使用适配器或提供商默认行为
卸载
dsh plugin --profile web remove dsh-model-aliases
完成后重启当前 dsh web 进程并刷新页面。
开发
pnpm install
pnpm run build
pnpm test
pnpm pack --dry-run
构建产物位于 lib/:
lib/index.js:Host 插件入口lib/client.js:Web Client Bundlelib/types/:TypeScript 声明
反馈
发现问题或有功能建议,请提交到 GitHub Issues。
许可
MIT
Comments
Loading…
Similar plugins
by chuling-lingling
给 DeepSeek Harness (dsh) 的第三方中转模型补上「推理等级」选择器 —— 和官方模型在聊天框里的体验完全一致。
★ 0
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add dsh-plugin-reasoning-effortsby chancoki
为 DeepSeek Harness (DSH) Web GUI 提供模型搜索功能的插件——在模型选择弹窗中添加关键字搜索框,快速筛选模型。
★ 0
JavaScript
Sep 7, 2026
dsh plugin --profile web add dsh-model-search-pluginby lylarcher
一个DSH插件,为自定义模型配置输入类型(input)、推理模式(reasoningEfforts)
★ 0
MIT
TypeScript
Aug 29, 2026
dsh plugin --profile web add dsh-model-capabilitiesby cKNKSnd
DeepSeek Harnes 输入框当前模型提供商名称
★ 0
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-model-provider-badgeby bitterSmilezzz
DeepSeek Harness (DSH) 的增强模型选择器:单层菜单(搜索 + 分组)+ 底部内联推理强度(Effort)滑杆。
★ 1
↓ 74/wk
MIT
TypeScript
Sep 29, 2026
dsh plugin --profile web add dsh-model-selectorby ardli-firman
Searchable model selector for DeepSeek Harness — search models by name instead of scrolling
★ 0
JavaScript
Aug 22, 2026
dsh plugin --profile web add @ardli-firman/dsh-model-search