haiyoucuv/dsh-model-provider-label

haiyoucuv★ 1TypeScript最后同步: 2026-08-14

在 GitHub 打开

DeepSeek Harness plugin that disambiguates same-named models by showing their provider

README 摘要

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. 中文 English 默认模型选择器只显示模型名(如 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 服务。 安装 安装后 重启 dsh web 使浏览器端加载 client bundle。 提示:也可以直接用 pnpm 在 profile 目录安装: 开发 - 源码: 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…

在 GitHub 查看完整 README →
Tools / Devdeepseek-harnessdshdsh-plugin

分类