apiKey
apiKey: string
audio
baseURL
baseURL: string
batches
beta
chat
completions
containers
embeddings
evals
fetchOptions
fetchOptions: undefined | MergedRequestInit
files
fineTuning
graders
Protected
Optional
idempotencyHeader
idempotencyHeader?: string
images
logLevel
logLevel: undefined | LogLevel
logger
logger: undefined | Logger
maxRetries
maxRetries: number
models
moderations
organization
organization: null | string
project
project: null | string
responses
timeout
timeout: number
uploads
vectorStores
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
toFile
toFile: ((value: ToFileInput | PromiseLike<ToFileInput>, name?: null | string, options?: FilePropertyBag) => Promise<File>)
API Client for interfacing with the OpenAI API.