DreamZhongJu/dsh-smart-model-router0

dsh-smart-model-router

智能模型路由器:根据任务类型自动分类请求,并路由至配置的供应商/模型组合,支持技术故障自动降级备用模型。

AI 分析

核心用途是优化模型调用成本与效果。适合需要根据任务复杂度自动分流(如简单任务用快模型,复杂任务用强模型)并需要高可用容灾的用户。

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

安装

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

DSH Smart Model Router

中文

dsh-smart-model-router is an installable DSH bundle that classifies requests and routes them to configured provider/model pairs with ordered technical-failure fallback.

It requires a DSH build that includes the Smart Model Router settings and model-picker integration. The DSH host supplies that interface; this repository supplies the routing plugin and its installable bundle.

Install

dsh plugin --profile web add github:DreamZhongJu/dsh-smart-model-router
dsh --profile web

The bundle adds the router disabled. Enable and configure it in DSH Settings → Plugins → Smart model router.

Notes

  • The selector reads DSH's local provider/model catalog; it does not discover models over the network.
  • When enabled in a non-manual mode, the DSH model picker is locked and the configured route owns selection.
  • Provider credentials remain in DSH's credential service and are never stored by this plugin.

See config.example.yaml for the complete routing configuration. The example is included in both the Git repository and the npm package.