Class: AzureOpenAI
Extends
OpenAI
Constructors
new AzureOpenAI()
new AzureOpenAI(
__namedParameters
?):AzureOpenAI
API Client for interfacing with the OpenAI API.
Parameters
• __namedParameters?: ClientOptions
Returns
Inherited from
OrigOpenAI.constructor
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:96
Properties
apiKey
apiKey:
string
Inherited from
OrigOpenAI.apiKey
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:77
audio
audio:
Audio
Inherited from
OrigOpenAI.audio
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:102
baseURL
baseURL:
string
Inherited from
OrigOpenAI.baseURL
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/core.d.ts:62
batches
batches:
Batches
Inherited from
OrigOpenAI.batches
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:107
beta
beta:
Beta
Inherited from
OrigOpenAI.beta
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:106
chat
chat:
Chat
Inherited from
OrigOpenAI.chat
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:98
completions
completions:
Completions
Inherited from
OrigOpenAI.completions
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:97
embeddings
embeddings:
Embeddings
Inherited from
OrigOpenAI.embeddings
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:99
files
files:
Files
Inherited from
OrigOpenAI.files
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:100
fineTuning
fineTuning:
FineTuning
Inherited from
OrigOpenAI.fineTuning
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:105
httpAgent
httpAgent:
undefined
|Agent
Inherited from
OrigOpenAI.httpAgent
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/core.d.ts:65
idempotencyHeader?
protected
optional
idempotencyHeader:string
Inherited from
OrigOpenAI.idempotencyHeader
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/core.d.ts:67
images
images:
Images
Inherited from
OrigOpenAI.images
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:101
maxRetries
maxRetries:
number
Inherited from
OrigOpenAI.maxRetries
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/core.d.ts:63
models
models:
Models
Inherited from
OrigOpenAI.models
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:104
moderations
moderations:
Moderations
Inherited from
OrigOpenAI.moderations
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:103
organization
organization:
null
|string
Inherited from
OrigOpenAI.organization
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:78
project
project:
null
|string
Inherited from
OrigOpenAI.project
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:79
timeout
timeout:
number
Inherited from
OrigOpenAI.timeout
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/core.d.ts:64
APIConnectionError
static
APIConnectionError: typeofAPIConnectionError
Inherited from
OrigOpenAI.APIConnectionError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:114
APIConnectionTimeoutError
static
APIConnectionTimeoutError: typeofAPIConnectionTimeoutError
Inherited from
OrigOpenAI.APIConnectionTimeoutError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:115
APIError
static
APIError: typeofAPIError
Inherited from
OrigOpenAI.APIError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:113
APIUserAbortError
static
APIUserAbortError: typeofAPIUserAbortError
Inherited from
OrigOpenAI.APIUserAbortError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:116
AuthenticationError
static
AuthenticationError: typeofAuthenticationError
Inherited from
OrigOpenAI.AuthenticationError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:121
BadRequestError
static
BadRequestError: typeofBadRequestError
Inherited from
OrigOpenAI.BadRequestError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:120
ConflictError
static
ConflictError: typeofConflictError
Inherited from
OrigOpenAI.ConflictError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:118
InternalServerError
static
InternalServerError: typeofInternalServerError
Inherited from
OrigOpenAI.InternalServerError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:122
NotFoundError
static
NotFoundError: typeofNotFoundError
Inherited from
OrigOpenAI.NotFoundError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:117
OpenAI
static
OpenAI: typeofOpenAI
Inherited from
OrigOpenAI.OpenAI
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:111
OpenAIError
static
OpenAIError: typeofOpenAIError
Inherited from
OrigOpenAI.OpenAIError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:112
PermissionDeniedError
static
PermissionDeniedError: typeofPermissionDeniedError
Inherited from
OrigOpenAI.PermissionDeniedError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:123
RateLimitError
static
RateLimitError: typeofRateLimitError
Inherited from
OrigOpenAI.RateLimitError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:119
UnprocessableEntityError
static
UnprocessableEntityError: typeofUnprocessableEntityError
Inherited from
OrigOpenAI.UnprocessableEntityError
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:124
fileFromPath()
static
fileFromPath: (path
,options
?) =>Promise
<File
>(path
,filename
?,options
?) =>Promise
<File
>
Parameters
• path: string
• options?: FileFromPathOptions
Returns
Promise
<File
>
Parameters
• path: string
• filename?: string
• options?: FileFromPathOptions
Returns
Promise
<File
>
Inherited from
OrigOpenAI.fileFromPath
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:126
toFile()
static
toFile: (value
,name
?,options
?) =>Promise
<FileLike
>
Helper for creating a File to pass to an SDK upload method from a variety of different data formats
Parameters
• value: ToFileInput
| PromiseLike
<ToFileInput
>
the raw content of the file. Can be an Uploadable, BlobLikePart, or AsyncIterable of BlobLikeParts
• name?: null
| string
the name of the file. If omitted, toFile will try to determine a file name from bits if possible
• options?: FilePropertyBag
additional properties
Returns
Promise
<FileLike
>
a File with the given properties
Inherited from
OrigOpenAI.toFile
Source
node_modules/.pnpm/openai@4.43.0/node_modules/openai/index.d.mts:125
Methods
authHeaders()
protected
authHeaders():object
Returns
object
api-key
api-key:
string
Overrides
OrigOpenAI.authHeaders
Source
packages/core/src/llm/openai.ts:47
buildRequest()
buildRequest<
Req
>(options
):object