yera.models.interfaces.llms.azure_openai

Module containing the interface to Azure OpenAI LLMs.

Symbols

class AzureOpenAILLM — Interface to Azure OpenAI llms.

AzureOpenAILLM

Inherits: OpenAILLM

Interface 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

config
type: LLMConfig

Configuration settings for the llm including model_id and inference parameters.

connection
type: AzureConnection

Azure connection configuration including its tenant and v1 endpoint.

client
type: OpenAI

Lazy-initialised OpenAI-compatible client instance.

Methods

__init__ — Initialize an Azure OpenAI interface without starting its client.
start — Initialise the OpenAI client for Azure's v1 endpoint.

AzureOpenAILLM.__init__

__init__(
    config: LLMConfig,
    connection: AzureConnection,
    overrides: dict,
)

Initialize an Azure OpenAI interface without starting its client.

Parameters

config
type: LLMConfig

Model identity and default inference settings.

connection
type: AzureConnection

Azure tenant and endpoint configuration used at startup.

overrides
type: dict

Inference values to apply over the model defaults.

AzureOpenAILLM.start

start() → None

Initialise 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.