Skip to main content

Module azure_openai

Module azure_openai 

Source
Expand description

Azure OpenAI provider.

Uses the same OpenAI Chat Completions wire format but with Azure-specific URL patterns and authentication. The deployment name is part of the URL, so the model field is omitted from the request body.

Auth: api-key header by default, or Authorization: Bearer {ad_token} when AZURE_OPENAI_AD_TOKEN is set.

Structsยง

AzureOpenAiProvider
Azure OpenAI provider with api-key header auth and AD token support.