dsh-model-accordion
其他 活跃维护

dsh-model-accordion

lakabuji-arch/dsh-model-accordion

轻量按服务商分类折叠展示的模型选择组件,可替换Web编辑器默认单模型选择位,支持模糊检索、快速切换目标模型,无需翻找长列表即可完成模型选型,操作流程更简洁。

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

dsh-model-accordion

Provider-folded model selector for the DeepSeek Harness Web composer.

What it does

  • Replaces the single composer model seat with a provider-folded selector.
  • Keeps provider groups collapsed by default and opens models on demand.
  • Reads reasoning-effort choices from each model's resolved catalog metadata instead of maintaining a hard-coded effort list.
  • Sends model and reasoning-effort selections through DSH's shared model-directory service.
  • Wraps vision-router mirror providers in one collapsed 识图镜像(带图会话) section when those providers are present.
  • Keeps the popup height-bounded with an internal scroll area and wraps effort controls below the model name.
  • Uses DSH semantic theme tokens for colors and supports light/dark theme changes.

Requirements

  • DeepSeek Harness Web 0.1.0-rc.8 or newer.
  • A Web profile with the official model-selection package and model-directory service.
  • React 18 supplied by the DSH Web runtime.

This is a Web UI plugin. It does not add a Host service, model provider, vision backend, or model catalog. Provider availability and image-session admission remain controlled by DSH and any installed provider/vision plugins.

Install from a package or repository

dsh plugin --profile web add dsh-model-accordion

For a local checkout during development:

dsh plugin --profile web add file:/absolute/path/to/dsh-model-accordion

Refresh the Web UI after installation. The package declares a dsh.bundle patch and a Web client entry, so it is installed and loaded as a persistent profile bundle rather than a temporary runtime extension.

Behavior and limitations

  • The selector submits the exact provider, model, and catalog-declared reasoning effort returned by the DSH model directory.
  • A selection can still be rejected by the DSH host when the session contains images and the selected model does not declare image input. That is a host/model-capability rule, not a UI override.
  • The optional 识图镜像(带图会话) section is shown when provider names identify vision-router mirror routes. It is kept collapsed to avoid duplicating every provider in the main list.
  • The plugin currently uses English fallback status text and a Chinese label for the vision-mirror section; full locale integration is planned for a later release.

Development checks

node --check lib/client.js
node --check lib/index.js
npm pack --dry-run --ignore-scripts

License

MIT