dsh-model-picker
学习研究 活跃维护

dsh-model-picker

yoggu/dsh-model-picker

提供模型搜索、置顶与隐藏功能,支持关键字快速过滤模型列表,置顶常用模型,隐藏不必要选项,操作即时生效,帮助用户高效管理模型菜单,保持工作区整洁。

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

dsh-model-picker

Searchable DSH Web composer model picker with a Plugins → Model Picker page to hide, pin and reorder models, set a persistent default reasoning effort per model, and refresh provider catalogs. Per-model effort defaults are applied whenever you select that model in a session. This plugin does not set the default model for newly created sessions; configure that separately in DSH's agent-default-model plugin settings.

Requirements

DSH 0.1.7 or newer, including 0.2.x, the web profile, and Node.js ^22.19.0 or >=24.0.0 for source development.

Install

Install the tagged GitHub release into your DSH Web profile:

dsh plugin --profile web add 'https://github.com/yoggu/dsh-model-picker.git#v0.1.1'

Or download the source and link the local checkout. Install its dependencies first; a linked package resolves them from its own directory:

git clone --branch v0.1.1 --depth 1 https://github.com/yoggu/dsh-model-picker.git
cd dsh-model-picker
pnpm install
dsh plugin --profile web add "link:$(pwd)"

Keep a linked checkout in place while the plugin is installed. Use the profile you actually run if it is not web.

Restart DSH Web if necessary and reload the page. Open Plugins → Model Picker to curate the available models. Configure model providers and credentials in DSH separately; this plugin does not supply them.

To uninstall: dsh plugin --profile web remove dsh-model-picker.

Provider refresh

Refresh providers reloads DSH's catalog and can query the configured baseURL of active providers for model IDs. It can append discovered models to those providers' settings; review provider endpoints before invoking it. It does not create providers, credentials or inference routes. Models only appear in the composer when the running DSH session catalog serves them. Refresh can warn that a provider requires a DSH restart.

Development

pnpm install
pnpm test

Tests use mocked services and do not query live providers.

License

MIT; see LICENSE.