Elysia11451/dsh-auto-model-router ↗★ 1

dsh-auto-model-router

根据会话来源自动切换模型与推理档位 适合需要根据聊天或工作场景自动分流、节省Token消耗的用户。

包名
dsh-auto-model-router
兼容性
待验证
版本
0.8.6
许可证
MIT
最近更新
2026年10月7日

同名包的其他仓库

安装

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

配置

配置项默认说明
chatModeautomanual 固定 manualChatModel;auto 走 chatModelPriority 链
manualChatModel""仅 manual 生效,格式 provider/model
chatModelPriority[]空数组——不预设 provider,用户按 provider/model 自填(便宜优先);空时回退 workModelFallback,日志 reason=chat-chain-empty
workModelFallbackmimo-v2.6-flash-free链全不中 / 清单未就绪时的最终回退值
workModelPrioritymimo…/glm…/deepseek…静态降级链(动态榜不可用时按序挑可用者)
chatEffort / workEffortlight / deep推理档位
enableDynamicRankingtruefalse = 不请求 OpenRouter,直接走静态链
reclaimUnknownModeltrue台账外未知模型强制纠偏回路由;false = 保守不动
manualWorkModel / manualWorkModelLocked"" / false锁定 work 模型后跳过动态榜
firstTurnPrompt / firstTurnPromptTimeoutMstrue / 60000首轮弹窗开关与超时(超时回退 chat)
switchCooldownMs5000同会话切换冷却(升档直通,降档受限)
enableGroupHint / hintCooldownMsfalse / 300000群聊 work 提示开关与节流
- insert:
    - id: auto-model-router
      name: 'dsh-auto-model-router'
      config:
        chatMode: auto
        chatModelPriority: []          # 自填,如 ['deepseek/deepseek-flash']
        workModelFallback: mimo-v2.6-flash-free
        workModelPriority:
          - mimo-v2.6-flash-free
          - glm-5.3-flash
          - deepseek-v4.1-flash
        enableDynamicRanking: true
        firstTurnPrompt: true
        switchCooldownMs: 5000

使用

日常零操作:IM 里闲聊自动走 Chat 档省 token,说"帮我装插件/写个脚本/跑一下测试"自动升 Work 档 deep 推理;会话里手动选过模型,路由自动让路不再覆盖。