前言¶
在 DeepSeek Harness(DSH)里配置多个 provider 时,不同 provider 下可能出现同名模型。如果模型选择器中只看到模型名,就难以判断当前选择的是哪个 provider 的模型。
下面介绍 dsh-model-provider-label。它用于把 provider 显示名和模型名放在一起显示,减少同名模型之间的选择成本。
这是什么¶
dsh-model-provider-label 是 DSH web 插件,维护者是 haiyoucuv。它在 DSH 对话框的 composer model seat 中同时显示 provider display name 与 model name。
该插件许可证为 MIT。
状态说明¶
该插件已停止维护。相关功能已并入 dsh-chat-tweaks。
如果后续安装 dsh-chat-tweaks,应卸载 dsh-model-provider-label。二者占用同一 UI 槽位,共存会报错。
核心功能¶
- 在 composer model seat 中显示 provider display name 与 model name。
- 用于区分不同 provider 下的同名模型。
- 通过更低 priority 遮蔽
conversation.input.modelUI 槽位的默认渲染。 - 复用宿主
modelDirectories服务。
安装与启用¶
从 GitHub 安装¶
执行下面命令:
dsh plugin --profile web add https://github.com/haiyoucuv/dsh-model-provider-label/archive/refs/tags/v0.1.0.tar.gz
该命令会把 v0.1.0 插件包安装到 web profile。安装后重启 dsh web。
从本地目录安装¶
如果是本地调试,可以使用:
dsh plugin --profile web add link:/path/to/dsh-model-provider-label
这里的 /path/to/dsh-model-provider-label 需要替换为实际插件目录。安装后重启 dsh web。
使用 pnpm 安装¶
也可以进入 profile 目录安装:
cd ~/.dsh/profiles/web && pnpm add https://github.com/haiyoucuv/dsh-model-provider-label/archive/refs/tags/v0.1.0.tar.gz
安装后重启 dsh web。
调整显示格式¶
如需修改 provider 与模型名的组合方式,编辑插件源码中的以下字段:
src/client/ModelSelect.tsxproviderLabelmodelLabeltriggerLabel
修改后执行构建:
pnpm build
构建完成后重启 dsh web。
注意¶
- 该插件已停止维护。
- 功能已并入
dsh-chat-tweaks。 - 安装
dsh-chat-tweaks后应卸载dsh-model-provider-label,避免同一 UI 槽位冲突。 - 插件以当前
dsh进程权限运行,安装前应检查源码、构建方式和许可证。 - 许可证为 MIT。
- GitHub 地址:
https://github.com/haiyoucuv/dsh-model-provider-label
小结¶
dsh-model-provider-label 的作用比较具体:在 DSH 模型选择器中让 provider 与模型名同时可见,方便区分不同 provider 下的同名模型。
由于该插件已停止维护,新使用场景可以关注 dsh-chat-tweaks;如果仍需要该历史插件,可按上面的命令安装 v0.1.0,然后重启 dsh web。