dsh-model-search
其他 活跃维护

dsh-model-search

johndfowler/dsh-model-search

提供面向网页编排器的可搜索模型选择组件,替换原有普通模型下拉选项,支持关键词快速过滤模型,轻量易集成,优化模型切换体验。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
18 KB
仓库大小
26 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:johndfowler/dsh-model-search
git clone https://github.com/johndfowler/dsh-model-search.git
git clone git@github.com:johndfowler/dsh-model-search.git
README.md master

dsh-model-search

Searchable model picker for the DeepSeek Harness (DSH) web composer.

The stock model seat (conversation.input.model) in DSH 0.1.1-rc.x is a plain grouped scroll list with no filtering — with 8 providers and hundreds of models it's tedious to navigate. This plugin replaces it with a filter-as-you-type popover.

How it works

Registers a provider for the conversation.input.model single slot at priority -100, which shadows the default (the slots framework elects the first live entry of a cell in priority order). The component:

  • shows the current model as the trigger (matching the stock pill)
  • on click, opens a popover with a live search box that filters the flat model list by model name/id and provider name
  • groups results by provider, marks the selected one
  • on selection, calls the model directory select({ provider, model, reasoningEffort }) (same API the built-in /model popup rides)

Uses the modelDirectories client service; no server-side work.

Install

cd /path/to/your-dsh-profile   # e.g. ~/.dsh/profiles/web
pnpm add github:johndfowler/dsh-model-search
# then append "dsh-model-search" to dsh.profile.bundles in package.json
# and restart `dsh web`.

License

MIT