dsh-smart-model-router
开发工具 活跃维护

dsh-smart-model-router

DreamZhongJu/dsh-smart-model-router

可灵活自定义路由规则的智能模型路由组件,支持按请求类型、负载等维度自动分发至对应模型实例,无需修改业务代码即可完成模型资源的动态调度,配置部署简单高效。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
54 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:DreamZhongJu/dsh-smart-model-router
git clone https://github.com/DreamZhongJu/dsh-smart-model-router.git
git clone git@github.com:DreamZhongJu/dsh-smart-model-router.git
README.md main

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.