DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

mengge237 /

mengge237/dsh-model-priority

Verified

DSH 模型列表排序:侧边栏拖拽调整模型与提供方的顺序,宿主的模型选择器按这份顺序返回,写配置前自动备份 | Model and provider ordering for DSH: drag to reorder in the sidebar, the host returns models in that order, and settings are backed up before every write

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: master@6a9f57a3

dsh-model-priority

模型顺序 + 原生列表排序。

  • 模型顺序:拖动某个提供方内部的模型;写入走官方 settings(describe + mutate + revision),一次拖动 = 一个 insertBefore move。
  • 入口是兼容的:settings.models.provider-card 的 llm-pi-ai 格空闲时直接挂卡片格(和 DeepSeek 卡片同一位置、同款样式);被别的插件(如 web-all「模型能力」)占住时才退回原生设置分区「模型顺序」。
  • 设置左导航:可拖拽排序,顺序存 ~/.dsh/ui-order.json(GET/PUT /dsh-model-priority/ui-order.json),刷新后保持。

安装

dsh plugin --profile web add github:mengge237/dsh-model-priority

本地开发用 dsh plugin --profile web add link:/path/to/dsh-model-priority,装完重启一次 dsh web。

契约

  • 模型顺序只改 settings 里 providers.<route>.models 的顺序;没有 ctx.settings 时返回 503,不写文件。
  • 左导航顺序是纯展示数据,不碰宿主配置;key 是导航行标签文本。
  • 设置分区用原生 settings.section(id model-priority,order 55)。

扩展

lib/lists.js:registerList({ id, read, write })。新增可排序列表 = 注册适配器,move 路由与前端拖动复用。

测试

npm test(不启动宿主)。

—/ 5

No ratings yet

Verified DSH bundle

Commit 6a9f57a3ee74

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout