Properties
Private _options
_options: any
apiKey
apiKey: string
audio
beta
chat
completions
embeddings
files
fineTuning
Protected Optional idempotencyHeader
idempotencyHeader?: string
images
maxRetries
maxRetries: number
models
moderations
organization
organization: null | string
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 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
API Client for interfacing with the OpenAI API.