You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a GetModels discovery tool and refactor providers for clean cross-provider support #1064
Mecatl currently has no internal way to discover which models and providers are available at runtime. Agents cannot enumerate configured models, which makes tasks like "pick the best model for X" or "run a cross-provider comparison" fragile — they rely on guessing model IDs and only discover failures via 404 no provider is configured.
Problems observed
No GetModels tool. There is no internal tool an agent can call to list supported providers and their available models. Model selection is blind.
Cross-provider support is not clean. Routing behavior appears inconsistent — the same session has routed OpenAI-style model IDs to an Anthropic endpoint, causing 404 no provider is configured. Cross-provider selection needs to work reliably.
Same model at multiple providers. A given model can be served by more than one provider, but there's no first-class way to represent or disambiguate that.
Sprout appears as two providers. Because of protocol differences (e.g. OpenAI Responses vs. Anthropic Messages), Sprout surfaces as two separate providers just to enumerate all its models. This is awkward and leaks a transport/protocol detail into the provider model.
Proposed direction
Add an internal GetModels discovery tool/API that returns configured providers and their available models (including which provider(s) serve each model).
Refactor the provider abstraction to support a single provider that is multi-endpoint / multi-protocol — i.e. a composite provider that can front multiple protocol endpoints (Responses, Messages, etc.) under one logical provider. This would collapse the "Sprout as two providers" awkwardness.
Model the "same model available at multiple providers" case explicitly so selection and fallback are well-defined.
Motivation / context
Hit while trying to run a cross-provider haiku comparison (OpenAI vs. Anthropic best model): model IDs that worked earlier in a session later failed with 404 no provider is configured, and there was no way to enumerate valid model IDs to recover.
Activity