xclj123/dsh-effort-auto-toggle ↗★ 0
dsh-effort-auto-toggle
DSH plugin: an Auto toggle next to the model selector that schedules reasoning_effort per request. Model-adaptive since 0.2.0 — the model's real effort ladder (low/high/max, or low/high/highx/max/ultra, ...) is read from the host llm service and the scheduler's semantic tiers map onto it. MiniMax/OpenAI-compatible scorer with heuristic fallback (fallbacks not cached), session-scoped tool-continuity upgrades, per-reply badge and lit-button tier label in the adapter's own (English) effort ids, JSONL token ledger. No fake 'auto' entry in the effort dropdown (the original dsh-adaptive-effort UNSUPPORTED_REASONING_EFFORT bug); manual off clamped on forced-thinking models (GLM-5.3).
설치
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xclj123/dsh-effort-auto-toggle配置
安装时写进 profile 的 cordis.patch.yml,之后设置卡上直接改(无需重启):
| 字段 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关 |
autoOn | false | 按钮当前状态(点亮=true) |
mode | minimax | minimax(小模型打分)/ heuristic(纯启发式) |
minimaxApiKey | — | 打分端点 key |
minimaxBaseUrl | — | OpenAI 兼容 chat 端点 |
minimaxModel | — | 打分模型名(选便宜快的) |
allowToolUpgrade | true | 工具连续性升档开关 |
仅 yaml 可改:scoreTimeoutMs(默认 9000ms,超时回退启发式)、clampForcedThinkingOff(默认
true)、ledgerDir(默认 ~/.dsh/effort-auto-toggle)。
使用
- 重启 DSH 后,输入栏模型选择器左侧出现「自动」按钮(熄灭状态)。
- 点亮 → 从下一条消息起自动调度;按钮随实际请求跳动显示档位
(
自动·low→自动·high→ …)。 - 再点熄灭 → 还原你进入自动前手选的档位,一切回到原生行为。
- 每条回复下方角标显示该请求实际用的档位。