dsh plugins中文
← Back to popular plugin directory

model profile · DSH plug-in selection directory

ztlovelsw/dsh-model-profile · model-adapters

DSH Web GUI plug-in: Configure image support and reasoning efforts for each model in the model catalog editor row of "Settings → Model".

★ 0GitHub stars
0Forks
2026-08-16Last updated
TypeScriptLanguage
License

Project overview

控件块标题行有 「按 models.dev 预设」 按钮:按模型 ID 查询 models.dev 开放数据库(自动去掉网关前缀并容忍 -high / -medium 等思考档后缀,一方厂商条目优先),命中后自动写入该模型的图像支持 (modalities.input)与思考等级(reasoningoptions 枚举,none → off 且取值为空); models.dev 没有意见的字段保持原值不动。

结构: src/index.ts — host 半区入口(无行为)。 src/client/index.ts — browser 半区装配(字典、失效刷新、增强器启动)。 src/client/controller.ts — providers/models join、写回、粘滞复原。 src/client/enhance.ts — MutationObserver 结构探测 + 注入协调。 src/client/controls.ts — 注入块 DOM 构建 / 事件 / 同步。 src/client/core.ts — 图像 / 思考等级纯逻辑(可单测)。 src/client/locales.ts — 中英文案。 src/client/enhance.module.css — 注入块样式(跟随外壳设计令牌)。 cordis.patch.yml — bundle patch 插件行(id ui-model-profile)。

Install command

dsh plugin --profile web add github:ztlovelsw/dsh-model-profile
View GitHub repository ↗Back to popular plugin directory