Townrain/dsh-model-vendor-badge ↗★ 1
dsh-model-vendor-badge
Vendor logo seat in the DSH web composer: shows which provider serves the current model (DeepSeek / OpenAI / Anthropic / OpenCode / ...), live from the official per-session ModelDirectory.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Townrain/dsh-model-vendor-badge说明文档
阅读完整 README ↗dsh-model-vendor-badge
DeepSeek Harness Web 输入框的厂商 logo 徽章:在模型选择器左侧显示当前模型由哪家厂商提供服务,数据来自官方 per-session ModelDirectory,实时联动。
[◱] [deepseek-v4-pro · High ▾] [发送]
功能
- 注册到
conversation.input.right——模型选择器左侧的输入行槽位。 - 与模型座读取同一个 per-session
ModelDirectory(ctx.modelDirectories),菜单、/model弹窗或 host 里切换模型都会实时更新徽章。 - 内置 opencode-dev 官方 sprite 的 98 个厂商图标(OpenAI、Anthropic、Google、OpenRouter、Groq、Mistral、xAI、DeepSeek、OpenCode/OpenCode Go 等),单色跟随主题;DeepSeek 使用官方鲸鱼图标。
- 纯前端展示:无 host 代码、无 RPC、无设置、无会话事件;卸载即净。
安装
dsh plugin --profile web add github:Townrain/dsh-model-vendor-badge
或本地目录:
dsh plugin --profile web add /path/to/dsh-model-vendor-badge
安装后刷新页面。
构建
DSH_CHECKOUT=/path/to/deepseek-harness node build.mjs
build.mjs 从 DSH checkout 解析 esbuild + typescript,junction 客户端类型依赖,产出 lib/index.js(host,no-op)、lib/client.js(浏览器 bundle,__ModuleLoader__ 格式)和 lib/types/ 声明。
License
MIT