Package com.openai.services.async
Class BatchServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.openai.services.async.BatchServiceAsync
public final class BatchServiceAsyncImpl implements BatchServiceAsync
-
-
Method Summary
Modifier and Type Method Description CompletableFuture<Batch>
create(BatchCreateParams params, RequestOptions requestOptions)
Creates and executes a batch from an uploaded file of requests CompletableFuture<Batch>
retrieve(BatchRetrieveParams params, RequestOptions requestOptions)
Retrieves a batch. CompletableFuture<BatchListPageAsync>
list(BatchListParams params, RequestOptions requestOptions)
List your organization's batches. CompletableFuture<Batch>
cancel(BatchCancelParams params, RequestOptions requestOptions)
Cancels an in-progress batch. -
-
Method Detail
-
create
CompletableFuture<Batch> create(BatchCreateParams params, RequestOptions requestOptions)
Creates and executes a batch from an uploaded file of requests
-
retrieve
CompletableFuture<Batch> retrieve(BatchRetrieveParams params, RequestOptions requestOptions)
Retrieves a batch.
-
list
CompletableFuture<BatchListPageAsync> list(BatchListParams params, RequestOptions requestOptions)
List your organization's batches.
-
cancel
CompletableFuture<Batch> cancel(BatchCancelParams params, RequestOptions requestOptions)
Cancels an in-progress batch. The batch will be in status
cancelling
for up to 10 minutes, before changing tocancelled
, where it will have partial results (if any) available in the output file.
-
-
-
-