AzureOpenAIOptions
Namespace: Vercel.AI.Azure
public sealed class AzureOpenAIOptionsAzure OpenAI settings.
Inheritance: object
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; set; }Explicit key. Falls back to AZURE_API_KEY.
Value: string
ApiVersion
Section titled “ApiVersion”public string ApiVersion { get; set; }API version query parameter. Defaults to v1, also when set to null or empty.
Value: string
BaseUrl
Section titled “BaseUrl”public string? BaseUrl { get; set; }Resource host, for example https://my-resource.openai.azure.com.
Value: string
Headers
Section titled “Headers”public Dictionary<string, string> Headers { get; }Headers copied onto every request.
Value: Dictionary<string, string>
ResourceName
Section titled “ResourceName”public string? ResourceName { get; set; }Resource name used when BaseUrl is empty. Must be a single DNS label (letters, digits, and hyphens).
Value: string
TokenProvider
Section titled “TokenProvider”public Func<string>? TokenProvider { get; set; }Microsoft Entra token provider. Each call receives a fresh bearer token.
Value: Func<string>
UseDeploymentBasedUrls
Section titled “UseDeploymentBasedUrls”public bool UseDeploymentBasedUrls { get; set; }Uses the legacy /openai/deployments/{deploymentId}{path} routes instead of /openai/v1{path}.
Value: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product