Interface: AzureOpenAIConfig
Extends
AzureClientOptions
Properties
apiKey?
optional
apiKey:string
Defaults to process.env['AZURE_OPENAI_API_KEY'].
Inherited from
AzureClientOptions.apiKey
Defined in
node_modules/.pnpm/openai@4.60.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/index.d.mts:244
apiVersion?
optional
apiVersion:string
Defaults to process.env['OPENAI_API_VERSION'].
Inherited from
AzureClientOptions.apiVersion
Defined in
node_modules/.pnpm/openai@4.60.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/index.d.mts:231
azureADTokenProvider()?
optional
azureADTokenProvider: () =>Promise
<string
>
A function that returns an access token for Microsoft Entra (formerly known as Azure Active Directory), which will be invoked on every request.
Returns
Promise
<string
>
Inherited from
AzureClientOptions.azureADTokenProvider
Defined in
node_modules/.pnpm/openai@4.60.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/index.d.mts:249
baseURL?
optional
baseURL:null
|string
Override the default base URL for the API, e.g., "https://api.example.com/v2/"
Defaults to process.env['OPENAI_BASE_URL'].
Inherited from
AzureClientOptions.baseURL
Defined in
node_modules/.pnpm/openai@4.60.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/index.d.mts:25
dangerouslyAllowBrowser?
optional
dangerouslyAllowBrowser:boolean
By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
Only set this option to true
if you understand the risks and have appropriate mitigations in place.
Inherited from
AzureClientOptions.dangerouslyAllowBrowser
Defined in
node_modules/.pnpm/openai@4.60.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/index.d.mts:73
defaultHeaders?
optional
defaultHeaders:Headers
Default headers to include with every request to the API.
These can be removed in individual requests by explicitly setting the
header to undefined
or null
in request options.