nat.llm.azure_openai_llm#

Classes#

AzureOpenAIModelConfig

An Azure OpenAI LLM provider to be used with an LLM client.

Functions#

azure_openai_llm(config, _builder)

Module Contents#

class AzureOpenAIModelConfig#

Bases: nat.data_models.llm.LLMBaseConfig, nat.data_models.retry_mixin.RetryMixin, nat.data_models.thinking_mixin.ThinkingMixin, nat.data_models.ssl_verification_mixin.SSLVerificationMixin

An Azure OpenAI LLM provider to be used with an LLM client.

model_config#
api_key: nat.data_models.common.OptionalSecretStr = None#
api_version: str = None#
azure_endpoint: str | None = None#
azure_deployment: str = None#
seed: int | None = None#
temperature: float | None#
top_p: float | None#
request_timeout: float | None = None#
property model_name: str#

Returns the model name for compatibility with other parts of the code base which expect a model_name attribute.

async azure_openai_llm(
config: AzureOpenAIModelConfig,
_builder: nat.builder.builder.Builder,
)#