插件目录 / Developer / dsh-model-provider-label
dsh-model-provider-label
已验证 · 实测可装 haiyoucuv
✓ 持续维护 基于 6 个官方 DSH 包 纯 TypeScript
1Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-15最近推送
跨平台平台
功能简介
显示同名模型的提供商以消歧
我们的评价
可用 — 实测通过,早期项目
可用 — 实测通过,早期项目
显示同名模型的提供商以消歧 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-model-provider-label
> ## ⚠️ 已停止维护(Deprecated) > > **本插件已停止维护**:「显示厂商名」功能已并入新插件 **https://github.com/haiyoucuv/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.
https://img.shields.io/github/v/release/haiyoucuv/dsh-model-provider-label](https://github.com/haiyoucuv/dsh-model-provider-label/releases)
https://img.shields.io/badge/license-MIT-blue.svg](LICENSE)
**中文** | [English](README_EN.md)
默认模型选择器只显示模型名(如 DeepSeek V4 Flash)。当你配置多个
provider、且不同 provider 下有**同名的模型**时无法区分。本插件把 provider
的 displayName 一并显示:**DeepSeek · DeepSeek V4 Flash**。
效果
| 默认 | 安装本插件后 |
| ---- | ------------ |
| DeepSeek V4 Flash | DeepSeek · DeepSeek V4 Flash |
| GPT-5 (provider A) | ProviderA · GPT-5 |
| GPT-5 (provider B) | ProviderB · GPT-5 |

下拉菜单、推理等级选择、模型目录加载、错误提示等行为与默认实现完全一致——
本插件只是**遮蔽**了 conversation.input.model UI 槽位,用 priority 更低
的组件替换默认渲染,其余逻辑 100% 复用宿主 modelDirectories 服务。
安装
`sh
从 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
> `
开发
`sh
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-selection 以 priority: 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)安装
🧩 让 Agent 自动装(推荐)
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-model-provider-label」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:haiyoucuv/dsh-model-provider-label Headless(CLI)profile:
dsh plugin --profile headless add github:haiyoucuv/dsh-model-provider-label 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。