sttp.openai.requests.batch
Members list
Type members
Classlikes
Value parameters
- completionWindow
-
The time frame within which the batch should be processed. Currently only 24h is supported.
- endpoint
-
The endpoint to be used for all requests in the batch. Currently, /v1/chat/completions, /v1/embeddings, and /v1/completions are supported. Note that /v1/embeddings batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
- inputFileId
-
The ID of an uploaded file that contains requests for the new batch. Your input file must be formatted as a JSONL file, and must be uploaded with the purpose batch. The file can contain up to 50,000 requests, and can be up to 200 MB in size.
- metadata
-
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
BatchRequestBody.type
Value parameters
- `object`
-
The object type, which is always batch.
- cancelledAt
-
The Unix timestamp (in seconds) for when the batch was cancelled.
- cancellingAt
-
The Unix timestamp (in seconds) for when the batch started cancelling.
- completedAt
-
The Unix timestamp (in seconds) for when the batch was completed.
- completionWindow
-
The time frame within which the batch should be processed.
- createdAt
-
The Unix timestamp (in seconds) for when the batch was created.
- endpoint
-
The OpenAI API endpoint used by the batch.
- errorFileId
-
The ID of the file containing the outputs of requests with errors.
- errors
-
The errors object.
- expiredAt
-
The Unix timestamp (in seconds) for when the batch expired.
- expiresAt
-
The Unix timestamp (in seconds) for when the batch will expire.
- failedAt
-
The Unix timestamp (in seconds) for when the batch failed.
- finalizingAt
-
The Unix timestamp (in seconds) for when the batch started finalizing.
- id
-
The ID of the batch.
- inProgressAt
-
The Unix timestamp (in seconds) for when the batch started processing.
- inputFileId
-
The ID of the input file for the batch.
- metadata
-
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
- outputFileId
-
The ID of the file containing the outputs of successfully executed requests.
- requestCounts
-
The request counts for different statuses within the batch.
- status
-
The current status of the batch.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
BatchResponse.type
Value parameters
- code
-
An error code identifying the error type.
- line
-
The line number of the input file where the error occurred, if applicable.
- message
-
A human-readable message providing more details about the error.
- param
-
The name of the parameter that caused the error, if applicable.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ListBatchResponse.type
Value parameters
- after
-
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
- limit
-
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
QueryParameters.type
Value parameters
- completed
-
Number of requests that have been completed successfully.
- failed
-
Number of requests that have failed.
- total
-
Total number of requests in the batch.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RequestCounts.type