Skip to content

console: capability overrides for aggregated models - #602

Open
guyu233 wants to merge 3 commits into
caigee-cmd:mainfrom
guyu233:upstream/aggregation-caps
Open

guyu233 wants to merge 3 commits into
caigee-cmd:mainfrom
guyu233:upstream/aggregation-caps

Conversation

@guyu233

@guyu233 guyu233 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Change

  • Model-pool editor can pin context window, max output, reasoning levels and default effort per aggregated model (HeroUI fields, capability section in the editor).
  • /v1/models advertises exactly those overrides when set. Without overrides an aggregation advertises the conservative intersection of its members (smallest window and output, shared reasoning levels) instead of the first member's numbers.
  • Members resolve by provider and region, not by model name alone, so a pool cannot silently pick the wrong regional upstream.
  • A request that carries no reasoning intent uses the aggregation default level; each member provider still maps and clamps it to what its model allows.
  • Adds a numbered SQLite migration in internal/store/migrations.go for the stored capability columns (backup/restore covers them).
  • Also included: aggregation keys expose their logical model names in /v1/models and the key UI locks provider selection to the aggregation (supporting fix; without it the capability tests cannot resolve a pool member).

Behavior to review

  • This changes what /v1/models advertises for pools that previously copied the first member's limits. Existing pools keep working, but a client that sized requests from the old numbers will see the intersection until the operator sets overrides.
  • The new migration is additive; existing databases get empty capability columns and keep the intersection behavior.

Verification

  • go test ./... passes.
  • go build ./... passes.
  • cd frontend && npm run sync regenerated internal/webui/static for the editor changes.

- Model pool editor can pin context window, max output, reasoning levels and
  default effort for an aggregated model; /v1/models advertises exactly those
  values.
- Aggregations without overrides advertise the conservative intersection of
  their members (smallest window and output, shared reasoning levels) instead
  of the first member's numbers, and members resolve by provider and region
  rather than by model name alone.
- A request that carries no reasoning intent uses the aggregation default level;
  each member provider still maps and clamps it to what its own model allows.
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