Skip to content

feat: route aggregate providers by model - #1780

Open
kokotao wants to merge 1 commit into
BigPizzaV3:mainfrom
kokotao:codex/aggregate-relay-model-routing
Open

feat: route aggregate providers by model#1780
kokotao wants to merge 1 commit into
BigPizzaV3:mainfrom
kokotao:codex/aggregate-relay-model-routing

Conversation

@kokotao

@kokotao kokotao commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add aggregate provider model route rules with wildcard matching and priority ordering
  • route matching selects the target member provider before fallback strategy is used
  • rewrite proxied upstream model to the selected member provider default model in aggregate mode
  • write aggregate Codex provider config with requires_openai_auth = false
  • add manager UI helpers/tests for aggregate route editing and validation

Details

  • Supports patterns such as deepseek-*, gpt-*, and exact model names.
  • Keeps legacy aggregate strategies for unmatched requests.
  • Skips invalid route targets and records route matched / unmatched / skipped diagnostic events.
  • Falls back through remaining aggregate members when the selected upstream request fails.

Closes #1744.

Test plan

  • npm test
  • npm run check
  • cargo test -p codex-plus-core --test relay_rotation
  • cargo test -p codex-plus-core --test protocol_proxy aggregate -- --nocapture
  • cargo test -p codex-plus-core --test relay_config aggregate -- --nocapture
  • cargo test -p codex-plus-core --test relay_switch

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.

[Feature]: 聚合供应商支持根据模型来源自动路由到不同供应商

1 participant