JianTG/dsh-auto-model-router0

dsh-auto-model-router

DSH 插件:按任务复杂度在 deepseek-v4-flash 与 deepseek-v4-pro 之间自动路由(只升不降)

包名
dsh-auto-model-router
版本
0.1.0
最近更新
2026年8月16日

安装

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

1. 装进 web profile(自动注册,无需改任何配置文件)

dsh plugin --profile web add

配置(~/.dsh/settings.yamlauto-model-router 段,热更新)

auto-model-router:
  enabled: true                    # 总开关
  baseProvider: deepseek-official
  baseModel: deepseek-v4-flash     # 基线模型(插件只管理这一对的升级/回落)
  proModel: deepseek-v4-pro        # 升级目标
  upgradeReasoningEffort: high     # 升级到 pro 时的推理强度(off/high/max)
  classifierEnabled: true          # 中间态是否调用 flash 分类器
  classifierTimeoutMs: 3000
  lengthStrong: 400                # 去空白长度 ≥ 此值 → pro
  lengthWeak: 40                   # 去空白长度 ≤ 此值 → flash
  keywordsStrong: [重构, 架构, 设计, 排查, 分析, 审计, 优化, 测试, 实现, 开发, 修复, bug, 多文件, 批量, review, 迁移, 方案, implement, debug, refactor, migrate, migration, optimize, architecture, deploy, plugin]