dsh-model-vendor-badge
其他 活跃维护

dsh-model-vendor-badge

Townrain/dsh-model-vendor-badge

轻量级网页编辑器插件,可展示当前调用模型的供应商徽章,实时对接官方会话级模型目录数据源,自动同步最新服务方信息,无需手动配置即可精准标识模型归属,方便快速确认模型服务来源。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
220 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Townrain/dsh-model-vendor-badge
git clone https://github.com/Townrain/dsh-model-vendor-badge.git
git clone git@github.com:Townrain/dsh-model-vendor-badge.git
README.md main

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 ModelDirectory the model seat renders from
    (ctx.modelDirectories), so a selection change anywhere — the seat menu,
    the /model popup, 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