apiKey
apiKey: string
audio
baseURL
baseURL: string
batches
beta
chat
completions
containers
embeddings
evals
fetchOptions
fetchOptions: undefined | MergedRequestInit
files
fineTuning
graders
Protected OptionalidempotencyHeader
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
webhookSecret
webhookSecret: null | string
webhooks
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
StaticInvalidWebhookSignatureError
InvalidWebhookSignatureError: typeof InvalidWebhookSignatureError
StaticNotFoundError
NotFoundError: typeof NotFoundError
StaticOpenAI
StaticOpenAIError
OpenAIError: typeof OpenAIError
StaticPermissionDeniedError
PermissionDeniedError: typeof PermissionDeniedError
StaticRateLimitError
RateLimitError: typeof RateLimitError
StaticUnprocessableEntityError
UnprocessableEntityError: typeof UnprocessableEntityError
StatictoFile
toFile: ((value: ToFileInput | PromiseLike<ToFileInput>, name?: null | string, options?: FilePropertyBag) => Promise<File>)
API Client for interfacing with the OpenAI API.