icyaaaww/dsh-adaptive-model-router0

dsh-adaptive-model-router

Deterministic per-turn adaptive model routing for DeepSeek Harness

AI 분석

核心用途是根据输入字符长度、复杂度关键词、步骤数或工具失败情况,在不同模型(如 Flash 和 Pro)间自动切换路由。适合需要平衡推理成本与生成质量的自动化任务。

패키지
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.