apiKey
apiKey: string
audio
batches
beta
chat
completions
embeddings
files
fineTuning
httpAgent
httpAgent: undefined | Agent
Protected
Optional
idempotencyHeader
idempotencyHeader?: string
images
maxRetries
maxRetries: number
models
moderations
organization
organization: null | string
project
project: null | string
uploads
Static
APIConnectionError
APIConnectionError: typeof APIConnectionError
Static
APIConnectionTimeoutError
APIConnectionTimeoutError: typeof APIConnectionTimeoutError
Static
APIError
APIError: typeof APIError
Static
APIUserAbortError
APIUserAbortError: typeof APIUserAbortError
Static
AuthenticationError
AuthenticationError: typeof AuthenticationError
Static
BadRequestError
BadRequestError: typeof BadRequestError
Static
ConflictError
ConflictError: typeof ConflictError
Static
DEFAULT_TIMEOUT
DEFAULT_TIMEOUT: number
Static
InternalServerError
InternalServerError: typeof InternalServerError
Static
NotFoundError
NotFoundError: typeof NotFoundError
Static
OpenAI
Static
OpenAIError
OpenAIError: typeof OpenAIError
Static
PermissionDeniedError
PermissionDeniedError: typeof PermissionDeniedError
Static
RateLimitError
RateLimitError: typeof RateLimitError
Static
UnprocessableEntityError
UnprocessableEntityError: typeof UnprocessableEntityError
Static
fileFromPath
fileFromPath: {
(path: string, options?: FileFromPathOptions): Promise<File>;
(path: string, filename?: string, options?: FileFromPathOptions): Promise<File>;
}
Static
toFile
toFile: ((value: ToFileInput | PromiseLike<ToFileInput>, name?: null | string, options?: FilePropertyBag) => Promise<FileLike>)
API Client for interfacing with the OpenAI API.