Neptune810/dsh-model-router ↗★ 0
@neptune810/dsh-model-router
根据任务复杂度动态调节推理努力度 适合使用 DeepSeek Flash 模型,希望通过自动调节推理努力度来优化成本与效果的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Neptune810/dsh-model-router说明文档
阅读完整 README ↗Configuration
The plugin reads its config from its row in the profile's cordis.patch.yml:
- id: model-router
config:
mode: auto # auto | off
model: deepseek-flash
allowMax: false # true enables max for auto routing and manual selection alike
maxFallback: high # where max collapses when allowMax is false
escalateOnErrors: 2 # failed tool results needed to step up
escalateOnRepeats: 3 # identical retries needed to step up
scoring:
turnPerPoint: 0 # raise this to let long sessions weigh more (not recommended)
routes:
trivial: { effort: off }
standard: { effort: low }
engineering: { effort: high }
hard: { effort: max }
DSH_MODEL_ROUTER=off|auto overrides mode at boot.
| Key | Default | Meaning |
|---|---|---|
mode | auto | off passes every request through, except the manual-max clamp |
provider | deepseek-official | only this provider is ever touched |
model | deepseek-flash | the one model this plugin drives |
familyPattern | ^deepseek-(flash|v4) | conversation models it may take over; a pro session is pulled back to flash |
allowMax | false | whether max is reachable at all |
maxFallback | high | what max collapses to |
demoteManualMax | true | also demote a manually selected max |
leaveImageSteps | true | steps carrying images keep the caller's model |
imagePolicy | keep | set to flash to route image steps too (the flash model has native vision) |
escalateOnErrors | 2 | failure-evidence threshold |
escalateOnRepeats | 3 | repeated-call threshold |
maxEscalations | 2 | most classes a single task may climb |
carryUnresolved | true | carry one step up from an unresolved failure |