DeepSeek Harness 插件

dsh-model-provider-label

DSH web plugin: show the provider display name next to the model name in the composer model seat, so identical model names from different providers are distinguishable. / 在对话框模型选择器同时显示 provider(英文原文)

跳到安装方式

来源信息

GitHub 仓库
haiyoucuv/dsh-model-provider-label
最近更新
2026年8月17日
分类
模型与服务商
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/haiyoucuv/dsh-model-provider-label
插件名:dsh-model-provider-label
作者:haiyoucuv

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器4 个文件
README.md来源说明 · 只读预览
README 语言

dsh-model-provider-label

> ## ⚠️ 已停止维护(Deprecated) > > 本插件已停止维护:「显示厂商名」功能已并入新插件 dsh-chat-tweaks(DSH 界面美化合集:独立设置页、更多开关,持续更新)。 > > - 新插件仓库:<https://github.com/haiyoucuv/dsh-chat-tweaks> > - 安装新插件: > > ``sh > dsh plugin --profile web add https://github.com/haiyoucuv/dsh-chat-tweaks/archive/refs/tags/v0.1.0.tar.gz > ` > > - 安装新插件后请卸载本插件(二者占用同一 UI 槽位,共存会报错): > > `sh > dsh plugin --profile web remove dsh-model-provider-label > `` > > 以下内容保留作历史存档。

> 在 DeepSeek Harness 对话框模型选择器同时显示 provider 显示名模型名, > 让不同 provider 下的同名模型一眼可辨。 > > Show the provider display name next to the model name in the DeepSeek > Harness composer model seat, so identical model names from different > providers become distinguishable.

![GitHub release](https://github.com/haiyoucuv/dsh-model-provider-label/releases) ![License: MIT](LICENSE)

中文 | English

默认模型选择器只显示模型名(如 DeepSeek V4 Flash)。当你配置多个 provider、且不同 provider 下有同名的模型时无法区分。本插件把 provider 的 displayName 一并显示:DeepSeek · DeepSeek V4 Flash

效果

默认安装本插件后
DeepSeek V4 FlashDeepSeek · DeepSeek V4 Flash
GPT-5 (provider A)ProviderA · GPT-5
GPT-5 (provider B)ProviderB · GPT-5

![效果预览](readme.png)

下拉菜单、推理等级选择、模型目录加载、错误提示等行为与默认实现完全一致—— 本插件只是遮蔽conversation.input.model UI 槽位,用 priority 更低 的组件替换默认渲染,其余逻辑 100% 复用宿主 modelDirectories 服务。

安装

# 从 GitHub 安装(推荐)
dsh plugin --profile web add https://github.com/haiyoucuv/dsh-model-provider-label/archive/refs/tags/v0.1.0.tar.gz

# 或从本地目录安装(开发调试)
dsh plugin --profile web add link:/path/to/dsh-model-provider-label

安装后重启 dsh web 使浏览器端加载 client bundle。

> 提示:也可以直接用 pnpm 在 profile 目录安装: > > ``sh > cd ~/.dsh/profiles/web && pnpm add https://github.com/haiyoucuv/dsh-model-provider-label/archive/refs/tags/v0.1.0.tar.gz > ``

开发

pnpm install          # 安装 esbuild / typescript 等 dev 依赖
pnpm build            # 生成 lib/client.js(ModuleLoader 格式)+ lib/index.js
  • 源码:src/client/index.tsx(apply / inject + 槽位遮蔽)、

src/client/ModelSelect.tsx(改造后的模型选择器)

  • 样式:src/client/ModelSelect.module.css
  • 构建产物 lib/ 已提交,安装无需本地构建

工作原理

DSH 的 conversation.input.model 是一个 single 类型 UI 槽位(slot), 默认由 dsh-client-ui-model-selectionpriority: 0 注册。slot 系统规定 同 priority 只能有一个注册,更低 priority 的注册会遮蔽(shadow)默认实现lowest renders)。本插件用 priority: -100 注册同名槽位,因此渲染的是 我们的组件;目录数据仍来自宿主注入的 modelDirectories service(按会话共享, 与 /model 命令同一份状态),翻译复用宿主已注册的 model locale namespace (不重复注册,避免 locale 冲突)。

自定义显示格式

编辑 src/client/ModelSelect.tsx 里的 providerLabel / modelLabel / triggerLabel 组合即可,然后 pnpm build + 重启。

License

MIT — 见 [LICENSE](LICENSE)