icrefin/dsh-model-reasoning-levels ↗★ 0

dsh-model-reasoning-levels

在设置中为每个模型独立配置推理努力程度级别。 适合需要精细化控制不同模型推理深度(reasoningEfforts)的 DSH 用户。

套件
dsh-model-reasoning-levels
相容性
待驗證
Harness 依賴範圍
0.2.0-rc.2
Cordis 依賴範圍
^4.0.1
版本
0.1.2
授權
MIT
最近更新
2026年10月11日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:icrefin/dsh-model-reasoning-levels

Usage

  1. Open Settings → Models and expand a pi-ai provider card (for example the hand-declared baidu-team route, or a catalog route such as OpenAI).
  2. Under Customized settings → Models, every model row now carries its own Reasoning effort levels control. Pick the levels the model offers; each non-off level gets a wire-value field, prefilled with the level id.
  3. Use Inherit catalog to omit reasoningEfforts, or Non-reasoning for a model that cannot think.
  4. 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.