yera.setup.model_discovery.openrouter
Discover models available through an OpenRouter connection.
Symbols
OpenRouterModelSetup
Inherits:
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_type
Provider identifier used by Yera configuration.
Methods
get_config — Obtain model configuration from the OpenRouter catalogue.
OpenRouterModelSetup.get_config
get_config() → SetupResult[list[BaseModelConfig]]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
type: SetupResult[list[BaseModelConfig]]
Supported OpenRouter model configuration and discovery diagnostics.