sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

建议新增 Model Router 模型路由层,智能择优调度模型

Open Joe0720 opened this issue 5 months ago • 1 comments

搭建模型路由层,根据任务难度、调用成本、响应延迟自动选择最优模型,支持策略配置、异常降级、日志监控,对上游无侵入。

核心功能

  1. 识别任务难度,采集各模型实时延迟、负载、成本数据
  2. 支持综合择优、低成本、低延迟等路由策略,规则可热更新
  3. 模型健康探测,故障自动切换兜底模型。

Joe0720 avatar Jun 12 '26 01:06 Joe0720

Related foundational PR for review: #3581

This PR adds the composite group route registry: explicit model aliases can route to configured concrete platforms/upstream models, with route precedence and admin preview. That is a building block for a model-router layer.

Caveat: it does not implement automatic best-model selection by task difficulty, realtime cost, latency, health, or fallback strategy. This PR is deterministic/admin-configured routing.

heathermhuang avatar Jul 01 '26 03:07 heathermhuang