-
Notifications
You must be signed in to change notification settings - Fork 242
Open
Description
Summary
When a models_gateway is configured, cagent currently assumes gateway supports core providers and shows a static list (configured models + models.dev catalog). It does not query the gateway for a live list of models. This causes incorrect/irrelevant models to appear in the model picker.
Proposal
Add gateway model discovery when models_gateway is set: query <gateway>/v1/models (OpenAI-style) or a configurable metadata endpoint and use the returned model list to populate/suppress models in the picker.
Acceptance criteria
- When
models_gatewayis set and/v1/modelsreturns a list, the model picker shows only models served by that gateway (merged with explicitly defined models in config). - Provide an opt-in config flag
models_gateway.discover: true/falseto control discovery. - Add unit tests and an integration test that mocks gateway responses.
- Document behavior in
AGENTS.mdandREADME.md.
Notes
- If gateway does not support
/v1/models, fall back to current behavior. - Consider caching the model list and exposing a refresh button in the TUI.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels