Skip to content

feat: 新增顺序优先模型选择策略#1497

Open
Liskarm wants to merge 1 commit intoMai-with-u:devfrom
Liskarm:dev
Open

feat: 新增顺序优先模型选择策略#1497
Liskarm wants to merge 1 commit intoMai-with-u:devfrom
Liskarm:dev

Conversation

@Liskarm
Copy link

@Liskarm Liskarm commented Jan 25, 2026

  • Add 'sequential' strategy to select models in order
  • Only try next model when current one is unavailable
  • Update frontend UI to include sequential option
  • Update config template with new strategy documentation
  • ✅ 接受:与main直接相关的Bug修复:提交到dev分支
  • 新增功能类pr需要经过issue提前讨论,否则不会被合并

请填写以下内容

    • main 分支 禁止修改,请确认本次提交的分支 不是 main 分支
    • 我确认我阅读了贡献指南
    • 本次更新类型为:BUG修复
    • 本次更新类型为:功能新增
    • 本次更新是否经过测试
  1. 请填写破坏性更新的具体内容(如有): 无破坏性更新,完全向后兼容
  2. 请简要说明本次更新的内容和目的:
    新增 sequential(顺序优先)模型选择策略。该策略按照配置文件中 model_list 的顺序使用模型,只有当前模型不可用时才会切换到下一个模型。适用于主备模型场景,用户可以明确指定模型优先级,确保优先使用性能更好或成本更低的主模型。

其他信息

  • 关联 Issue[Feature Request] 新增 sequential(顺序优先)模型选择策略 #1498
  • 截图/GIF:前端UI新增了 sequential 选项,用户可在模型配置页面的"模型选择策略"下拉菜单中选择
  • 附加信息:
    • 后端修改:[utils_model.py]、[api_ada_configs.py]、[model_config_template.toml]
    • 前端修改:[TaskConfigCard.tsx]
    • 现支持三种策略:balance(负载均衡)、random(随机)、sequential(顺序优先)

- Add 'sequential' strategy to select models in order
- Only try next model when current one is unavailable
- Update frontend UI to include sequential option
- Update config template with new strategy documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant