icyaaaww/dsh-adaptive-model-router0

dsh-adaptive-model-router

Deterministic per-turn adaptive model routing for DeepSeek Harness

包名
dsh-adaptive-model-router
版本
0.1.0
许可证
MIT
最近更新
2026年8月24日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:icyaaaww/dsh-adaptive-model-router

Configuration

The included bundle defaults to DeepSeek Flash and Pro:

- id: adaptive-model-router
  name: dsh-adaptive-model-router
  config:
    economy:
      provider: deepseek-official
      model: deepseek-v4-flash
    quality:
      provider: deepseek-official
      model: deepseek-v4-pro
    inputCharsThreshold: 1200
    complexityKeywords: [architecture, migration, security, 架构, 迁移, 安全]
    upgradeAfterStep: 2
    upgradeAfterToolFailures: 1
    failureExclude: [todo_write, job_output, job_list]
    preserveUnknownSelection: true

Each route also accepts optional reasoningEffort and maxTokens. A selected route without reasoningEffort clears the previous model's effort so the selected adapter can apply its own default; an omitted route maxTokens preserves an explicit request limit. Temperature, stop sequences, and every other request field remain unchanged.