Optional__namedParameters: ClientOptionsProtected_Create large batches of API requests to run asynchronously.
Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
Manage conversations and conversation items.
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
Manage and run evals in the OpenAI platform.
Files are used to upload documents that can be used with features like Assistants and Fine-tuning.
Protected OptionalidempotencyGiven a prompt and/or an input image, the model will generate a new image.
List and describe the various models available in the API.
Given text and/or image inputs, classifies if those inputs are potentially harmful.
Use Uploads to upload large files in multiple parts.
StaticAPIStaticAPIStaticAPIStaticAPIStaticAuthenticationStaticBadStaticConflictStaticDEFAULT_StaticInternalStaticInvalidStaticNotStaticOpenStaticOpenStaticPermissionStaticRateStatictoHelper for creating a File to pass to an SDK upload method from a variety of different data formats
the raw content of the file. Can be an Uploadable, BlobLikePart, or AsyncIterable of BlobLikeParts
Optionalname: null | stringthe name of the file. If omitted, toFile will try to determine a file name from bits if possible
Optionaloptions: FilePropertyBagadditional properties
the MIME type of the content
the last modified timestamp
a File with the given properties
StaticUnprocessableProtectedauthOptional__namedParameters: { retryCount?: number }ProtecteddefaultProtecteddefaultOptionalopts: PromiseOrValue<RequestOptions>Optionalopts: PromiseOrValue<RequestOptions>ProtectedmakeOptionalopts: PromiseOrValue<RequestOptions>Optionalopts: PromiseOrValue<RequestOptions>ProtectedprepareUsed as a callback for mutating the given FinalRequestOptions object.
ProtectedprepareUsed as a callback for mutating the given RequestInit object.
This is useful for cases where you want to add certain headers based off of
the request properties, e.g. method or url.
Optionalopts: PromiseOrValue<RequestOptions>ProtectedstringifyProtectedvalidateCreate a new client instance re-using the same options given to the current client with optional overriding.
API Client for interfacing with the OpenAI API.