Skip to content

feat: 跨供应商模型聚合与账号级 deployment - #581

Merged
caigee-cmd merged 7 commits into
caigee-cmd:mainfrom
guyu233:feat/model-pools-account-deployments
Nov 23, 2026
Merged

caigee-cmd merged 7 commits into
caigee-cmd:mainfrom
guyu233:feat/model-pools-account-deployments

Conversation

@guyu233

@guyu233 guyu233 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

本 PR

跨供应商模型聚合的新的干净基线,包含:

  • 多个真实供应商模型聚合为一个客户端可见的逻辑模型 ID。
  • 聚合成员支持 account_id:成员可固定到一个具体账号/deployment,而不是默认在该供应商下扇出到所有账号;旧配置不填 account_id 时保持原有 provider/region 池行为。
  • SQLite migration、store、console API、模型池编辑器和 /v1/models 能力合并同步支持 account_id。
  • 模型池支持 priority、round-robin、fill-first、fefo、least-quota-first、most-quota-first。
  • 模型可用性检查与逻辑模型暴露。

与前序 PR 的关系

本 PR 是新的聚合基线。账号路由 failover、缓存亲和、CC Switch 对齐 PR 堆叠在它之上;请按依赖顺序合并。

上线门槛

必须所有 required checks 通过后才能合并和上线;任何检查失败都不得上线。

需要全部通过:go、windows-host、worker、frontend、container、secrets。

本地验证

  • go build ./... 通过
  • 聚合、store、console 定向测试通过
  • 前端构建通过

Rebuilt on current main. Migration is 031 (030 is reserved by the pending key aggregation PR). Display reasoning levels stay catalog-driven instead of merging the full gateway set, and local-only audit/vite changes are dropped. Changelog now notes probe quota cost and the priority-order default.
Add account_id to aggregation members end to end: schema migration, store, console API, model pool editor, and matching. Legacy members without account_id keep provider-wide pool behavior.
Expose least-quota-first and most-quota-first for model pools and global routing, with normalized strategy loading and candidate counting aligned to the selected strategy.
@guyu233
guyu233 force-pushed the feat/model-pools-account-deployments branch from 71ae57e to 8d331e8 Compare November 23, 2026 10:37
@caigee-cmd
caigee-cmd merged commit 34e5bb5 into caigee-cmd:main Nov 23, 2026
6 checks passed
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.

2 participants