Townrain/dsh-model-vendor-badge ↗★ 1
dsh-model-vendor-badge
DSH Web 输入框的服务商徽章:实时显示当前模型由哪个服务商提供(如 DeepSeek、OpenAI 等)。
AI 分析
核心用于直观展示模型来源。适合在 DSH 中配置了多个服务商,需要在输入框旁快速确认当前对话所用模型归属的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Townrain/dsh-model-vendor-badge说明文档
阅读完整 README ↗dsh-model-vendor-badge
A vendor pill for the DeepSeek Harness web composer: shows which provider serves the current model, right next to the model selector.
[● DeepSeek] [deepseek-v4-pro · High ▾] [Send]
What it does
- Registers a small badge into
conversation.input.right— the composer tool row seat immediately left of the model selector. - Reads the same per-session
ModelDirectorythe model seat renders from (ctx.modelDirectories), so a selection change anywhere — the seat menu, the/modelpopup, the host — updates the pill live. - Shows the provider's display name from the host catalog (DeepSeek, Pi AI, OpenRouter, ...) with a brand-colored dot for known provider route ids; unknown routes fall back to a neutral dot.
- Pure client presentation: no host code, no RPC, no settings, no session events. Uninstalling leaves nothing behind.
Install
dsh plugin --profile web add github:dsh-model-vendor-badge # or a local clone:
dsh plugin --profile web add /path/to/dsh-model-vendor-badge
Refresh the page after installation.
Build
DSH_CHECKOUT=/path/to/deepseek-harness node build.mjs
build.mjs resolves the checkout's esbuild + typescript, junctions the client
type dependencies into node_modules/, and emits lib/index.js (host,
no-op) + lib/client.js (browser bundle, __ModuleLoader__ format) +
lib/types/ declarations.
License
MIT