yera.models.interfaces.llms.azure_openai
Module containing the interface to Azure OpenAI LLMs.
Symbols
AzureOpenAILLM
OpenAILLMInterface to Azure OpenAI llms.
Specialisation of OpenAILLM configured to work with Azure's OpenAI service. Handles Azure-specific authentication and endpoint configuration, whilst inheriting all standard chat and structured output functionality from the OpenAI interface.
Attributes
Configuration settings for the llm including model_id and inference parameters.
Azure connection configuration including its tenant and v1 endpoint.
Lazy-initialised OpenAI-compatible client instance.
Methods
AzureOpenAILLM.__init__
__init__(
config: LLMConfig,
connection: AzureConnection,
overrides: dict,
)Initialize an Azure OpenAI interface without starting its client.
Parameters
Model identity and default inference settings.
Azure tenant and endpoint configuration used at startup.
Inference values to apply over the model defaults.
AzureOpenAILLM.start
start() → NoneInitialise the OpenAI client for Azure's v1 endpoint.
Creates and stores an ordinary OpenAI client configured with the connection's Azure v1 endpoint and Entra token provider. This method must be called before making requests through the client property.