Live API model selection helpers.
Live API model availability can vary by rollout. This module provides a consistent way to choose a suitable model, preferring newer models when available while falling back to stable defaults.
Summary
Functions
Returns the candidate Live API models for a modality in preference order.
Returns the default Live API model for a modality.
Select the first candidate present in an available model list.
Resolve the most appropriate Live API model for a modality.
Types
Functions
Returns the candidate Live API models for a modality in preference order.
Returns the default Live API model for a modality.
Select the first candidate present in an available model list.
Returns {:ok, model} or :none if no candidates match.
Resolve the most appropriate Live API model for a modality.
Uses the Gemini API list_models response when available, then falls back
to the default model if no candidates are listed.
Options
:auth- Auth strategy passed toCoordinator.list_models/1(default::gemini):available_models- Explicit list of available models (bypass API call):candidates- Override candidate list (strings):require_method- Supported generation method to filter on (default:"bidiGenerateContent")