quick-model-widget
其他 活跃维护

quick-model-widget

edelah/quick-model-widget

内容编写器插件,提供紧凑型模型+推理快速切换能力,自动在浏览器localStorage中留存最近三个不同的选择记录,切换模型与推理配置无需重复操作。

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

quick-model-widget

A real DSH Web plugin that adds a compact model + reasoning quick-switcher to the composer. It keeps the last three distinct choices in browser localStorage.

Behavior

  • Existing choices keep their position when selected.
  • New choices append on the right.
  • Adding a fourth distinct choice removes the oldest item on the left.
  • Each button uses DSH's existing host-backed model selection path.
  • The normal full model selector remains available.

Install from this checkout

dsh plugin --profile web add link:/home/ubuntu/debug/quick-model-widget

Restart the DSH web process, then refresh http://127.0.0.1:3080.

Install from GitHub

After publishing this folder to a public repository:

dsh plugin --profile web add github:user/quick-model-widget

or:

dsh plugin --profile web add git+https://github.com/user/quick-model-widget.git

The package declares both dsh.bundle (to add its row to the profile) and dsh.client (to serve and load the browser bundle).

Remove

dsh plugin --profile web remove quick-model-widget

Restart DSH after adding or removing a profile plugin.

Files

  • src/client.js — readable Client plugin source.
  • lib/client.js — browser bundle loaded by DSH.
  • lib/index.js — no-op Host half required by DSH composition.
  • cordis.patch.yml — profile row added during installation.
  • quick-model-widget.js — reusable selection/history helpers.