qjcnmd/dsh-reasoning-slider 预览 preview

qjcnmd/dsh-reasoning-slider

插件Plugin 原生Native ⭐ 6 MIT

项目介绍Project Overview

推理等级滑块是一款 DSH 插件,把推理档位控件直接嵌入模型选择器弹层。选择模型后,弹层下方自动出现滑块,可在 off / minimal / low / medium / high / xhigh / max 之间拖动切换,支持键盘和滚轮操作,实时预览。切换模型时携带当前档位,不支持则回退到默认档位。需重启 dsh web 才能生效。

Reasoning Slider is a DSH plugin that embeds a reasoning level control directly into the model selector popover. After picking a model, a slider appears letting you switch between off, minimal, low, medium, high, xhigh, and max, with real-time preview and keyboard or wheel input. The current level carries over when switching models, falling back to the target model's default if unsupported. Restart dsh web after installation.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add reasoning-slider

qjcnmd/dsh-reasoning-slider 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-reasoning-slider

推理等级滑块,直接内嵌在 DeepSeek Harness 的模型选择器里:点开模型选择器,选中模型后下方出现滑块,拖动即可切换该模型的推理档位(off / minimal / low / medium / high / xhigh / max)。

安装

需要 pnpm(npm i -g pnpm)与 dsh(npm i -g @deepseek-ai/dsh)。

# 从 npm 安装(推荐,快且稳)
dsh plugin --profile web add reasoning-slider

# 或从 GitHub 安装
dsh plugin --profile web add github:qjcnmd/dsh-reasoning-slider

安装完成后重启 dsh web

功能

  • 滑块内嵌于模型选择器弹层,选择模型后自动显示该模型支持的推理档位
  • 拖动滑块实时预览,松开后生效
  • 切换模型时自动携带当前档位;目标模型不支持当前档位时自动回退到其默认档位
  • 单档位模型显示"支持档位: xxx",无档位模型显示提示
  • 键盘:←/→ 或 ↑/↓ 切换,滚动滚轮也可切换

禁用 / 卸载

dsh plugin --profile web remove reasoning-slider

或编辑 ~/.dsh/profiles/web/cordis.patch.yml,给 insert 行加 disabled: true

开发

dsh-reasoning-slider/
├── lib/
│   ├── index.js   # Node half(纯 UI 插件,apply 为空)
│   └── client.js  # 浏览器 half(完整滑块 UI)
├── cordis.patch.yml
└── package.json   # dsh.bundle 声明:安装后自动成为 profile 层

客户端代码是 window.__ModuleLoader__.load({...}) 格式的普通 JavaScript,无构建步骤;React 通过 require("react") 从 dsh 运行时解析。

许可

MIT

上一个 Prev DSH-changeproof 下一个 Next dsh-activity-tracker