apiKey
apiKey: string
audio
batches
beta
chat
completions
embeddings
files
fineTuning
httpAgent
httpAgent: undefined | Agent
images
maxRetries
maxRetries: number
models
moderations
organization
organization: null | string
project
project: null | string
uploads
StaticAPIConnectionError
APIConnectionError: typeof APIConnectionError
StaticAPIConnectionTimeoutError
APIConnectionTimeoutError: typeof APIConnectionTimeoutError
StaticAPIError
APIError: typeof APIError
StaticAPIUserAbortError
APIUserAbortError: typeof APIUserAbortError
StaticAuthenticationError
AuthenticationError: typeof AuthenticationError
StaticBadRequestError
BadRequestError: typeof BadRequestError
StaticConflictError
ConflictError: typeof ConflictError
StaticDEFAULT_TIMEOUT
DEFAULT_TIMEOUT: number
StaticInternalServerError
InternalServerError: typeof InternalServerError
StaticNotFoundError
NotFoundError: typeof NotFoundError
StaticOpenAI
StaticOpenAIError
OpenAIError: typeof OpenAIError
StaticPermissionDeniedError
PermissionDeniedError: typeof PermissionDeniedError
StaticRateLimitError
RateLimitError: typeof RateLimitError
StaticUnprocessableEntityError
UnprocessableEntityError: typeof UnprocessableEntityError
StaticfileFromPath
fileFromPath: {
(path: string, options?: FileFromPathOptions): Promise<File>;
(path: string, filename?: string, options?: FileFromPathOptions): Promise<File>;
}
StatictoFile
toFile: ((value: ToFileInput | PromiseLike<ToFileInput>, name?: null | string, options?: FilePropertyBag) => Promise<FileLike>)
Protected OptionalidempotencyHeader
idempotencyHeader?: string
API Client for interfacing with the OpenAI API.