Description: Automatically infers the values from environment variables for: - api_key from AZURE_OPENAI_API_KEY (IFF api_key AND ‘azure_ad_token_provider’ is not provided) - organization from OPENAI_ORG_ID - azure_ad_token from AZURE_OPENAI_AD_TOKEN - api_version from OPENAI_API_VERSION - azure_endpoint from AZURE_OPENAI_ENDPOINT
1. Property implementation
Title: Implementation
Specific value: "AzureOpenAIConnectionHandler"
2. Property azure_ad_token_provider
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|---|
| - implementation | No | string | No | - | Implementation |
| - | No | object | No | - | - |
2.1. Property implementation
Title: Implementation
3. Property token_provider_scopes
Title: Token Provider Scopes
| |
|---|
| Type | array of string |
| Required | No |
| Default | ["https://cognitiveservices.azure.com/.default"] |
| Array restrictions |
|---|
| Min items | N/A |
| Max items | N/A |
| Items unicity | False |
| Additional items | False |
| Tuple validation | See below |
3.1. token_provider_scopes items
4. Property api_version
Title: Api Version
| |
|---|
| Type | string |
| Required | No |
| Default | "2024-02-01" |