DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

Mrlilili /

Mrlilili/dsh-plugin-model-switcher

已验证

⌨️ DSH 插件:快捷键切换模型 (Ctrl+Shift+M) 和推理等级 (Ctrl+Shift+R)。纯客户端实现,无需 Host。 DSH plugin: keyboard shortcuts to cycle models (Ctrl+Shift+M) and reasoning effort levels (Ctrl+Shift+R). Pure client bundle, no Host required.

★ 1 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@16023315

dsh-plugin-model-switcher

English | 中文

DSH plugin for switching models and reasoning effort levels via keyboard shortcuts.

Shortcuts

Shortcut Action
Ctrl+Shift+M / Cmd+Shift+M Cycle through models in the current provider
Ctrl+Shift+R / Cmd+Shift+R Cycle through reasoning efforts (off → low → high → max → off)

A toast notification confirms each switch in the bottom-right corner.

How it works

Host (src/index.ts):

  • Reads the current model selection from agentDefaultModel
  • Cycles through models via llm.listModels() or reasoning efforts via llm.resolveModelInfo()
  • Persists the new selection via agentDefaultModel.saveSelection()

Client (src/client/index.ts):

  • Registers a toast overlay in the shell.overlay slot
  • Listens for Ctrl/Cmd+Shift+M and Ctrl/Cmd+Shift+R on the document (capture phase)
  • Calls the Host handlers via host.call() and updates the model selector UI via modelDirectories.directoryFor(sessionId).select()

Installation

dsh plugin --profile web add https://github.com/Mrlilili/dsh-plugin-model-switcher.git

Then restart DSH.

License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit 16023315e5b3

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于