yera.cli.model_discovery.azure
Azure OpenAI model discovery handler.
Symbols
AzureModelDiscovery
BaseModelDiscoveryHandler for discovering model deployments from Azure OpenAI.
Unlike other providers, Azure requires models to be 'deployed' before they can be used. This class discovers these deployments within a specific Azure Cognitive Services account and classifies them by their underlying model type.
Methods
AzureModelDiscovery.discover
discover() → DiscoveredModelsFetches all active deployments from the configured Azure OpenAI resource.
The discovery process follows these steps:
1. Authenticates using the provided tenant ID.
2. Queries the Cognitive Services Management client for all deployments
within the specific resource group and account.
3. Uses classify_openai_model to determine if the deployment is an
LLM, Embedding, TTS, or STT model based on the underlying model name.
4. Maps each valid deployment to its corresponding Yera configuration object.
Returns
A DiscoveredModels object containing lists of discovered LLMs, embeddings, TTS, and STT configurations.
Raises
If the provided connection object is not an AzureConnection.