Skip to main content
Version: Next

remote::azure

Description​

Azure OpenAI inference provider for accessing GPT models and other Azure services. Provider documentation https://learn.microsoft.com/en-us/azure/ai-foundry/openai/overview

Configuration​

FieldTypeRequiredDefaultDescription
allowed_modelslist[str | NoneNoList of models that should be registered with the model registry. If None, all models are allowed.
refresh_models<class 'bool'>NoFalseWhether to refresh models periodically from the provider
api_keypydantic.types.SecretStr | NoneNoAuthentication credential for the provider
api_base<class 'pydantic.networks.HttpUrl'>NoAzure API base for Azure (e.g., https://your-resource-name.openai.azure.com)
api_versionstr | NoneNoAzure API version for Azure (e.g., 2024-12-01-preview)
api_typestr | NoneNoazureAzure API type for Azure (e.g., azure)

Sample Configuration​

api_key: ${env.AZURE_API_KEY:=}
api_base: ${env.AZURE_API_BASE:=}
api_version: ${env.AZURE_API_VERSION:=}
api_type: ${env.AZURE_API_TYPE:=}