yera.setup.model_discovery.openrouter
Discover models available through an OpenRouter connection.
Symbols
OpenRouterModelSetup
ModelSetup[OpenRouterConnection]Discover and classify models available through OpenRouter.
The discovery operation traverses every model-catalog page exposed to the configured account and converts supported model families into typed Yera configuration objects. Unsupported output modalities are counted as skipped.
Attributes
Provider identifier used by Yera configuration.
Methods
OpenRouterModelSetup.get_config
get_config() → SetupResult[list[ModelConfig]]Obtain model configuration from the OpenRouter catalogue.
Every catalogue page is traversed. Models with unsupported output modalities are omitted and included in the skipped count. Expected OpenRouter client failures are returned as blocking errors.
Returns
Supported OpenRouter model configuration and discovery diagnostics.
Raises
If the catalogue contains malformed model metadata that cannot be converted into a supported configuration.