icrefin/dsh-model-reasoning-levels ↗★ 0
dsh-model-reasoning-levels
Per-model reasoning effort levels in Settings → Models: a levels editor beside context window and input types that converts each selection into the model's reasoningEfforts in the profile's cordis.patch.yml. 适合需要精细化控制不同模型推理深度(reasoningEfforts)的 DSH 用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:icrefin/dsh-model-reasoning-levelsUsage
- Open Settings → Models and expand a pi-ai provider card (for example the
hand-declared
baidu-teamroute, or a catalog route such as OpenAI). - Under Customized settings → Models, every model row now carries its own
Reasoning effort levels control. Pick the levels the model offers; each
non-
offlevel gets a wire-value field, prefilled with the level id. - Use Inherit catalog to omit
reasoningEfforts, or Non-reasoning for a model that cannot think. - Apply. The control writes one settings mutation and reloads; the small code chip shows the exact YAML value.
llm-deepseek routes have no per-model field — their effort is route-scoped —
so this editor renders only for the llm-pi-ai adapter family.
The CLI: preview the YAML and the op
node scripts/reasoning-efforts.mjs check --levels off,low,high,max --wire low=low,high=high,max=ultra
node scripts/reasoning-efforts.mjs yaml --route baidu-team --model deepseek-v4.1-flash \
--levels off,low,high,max --wire low=low,high=high,max=max
node scripts/reasoning-efforts.mjs ops --route acme --model acme-think --overrides \
--levels off,high --wire high=high
node scripts/reasoning-efforts.mjs none --model acme-plain
pnpm yaml is the same script. --json prints machine-readable output. Exit
code 1 means the selection is invalid and the reason goes to stderr.