Package com.openai.services.async
Interface BatchServiceAsync
-
- All Implemented Interfaces:
public interface BatchServiceAsync
-
-
Method Summary
Modifier and Type Method Description abstract CompletableFuture<Batch>
create(BatchCreateParams params, RequestOptions requestOptions)
Creates and executes a batch from an uploaded file of requests abstract CompletableFuture<Batch>
create(BatchCreateParams params)
Creates and executes a batch from an uploaded file of requests abstract CompletableFuture<Batch>
retrieve(BatchRetrieveParams params, RequestOptions requestOptions)
Retrieves a batch. abstract CompletableFuture<Batch>
retrieve(BatchRetrieveParams params)
Retrieves a batch. abstract CompletableFuture<BatchListPageAsync>
list(BatchListParams params, RequestOptions requestOptions)
List your organization's batches. abstract CompletableFuture<BatchListPageAsync>
list(BatchListParams params)
List your organization's batches. abstract CompletableFuture<Batch>
cancel(BatchCancelParams params, RequestOptions requestOptions)
Cancels an in-progress batch. abstract CompletableFuture<Batch>
cancel(BatchCancelParams params)
Cancels an in-progress batch. -
-
Method Detail
-
create
abstract CompletableFuture<Batch> create(BatchCreateParams params, RequestOptions requestOptions)
Creates and executes a batch from an uploaded file of requests
-
create
abstract CompletableFuture<Batch> create(BatchCreateParams params)
Creates and executes a batch from an uploaded file of requests
-
retrieve
abstract CompletableFuture<Batch> retrieve(BatchRetrieveParams params, RequestOptions requestOptions)
Retrieves a batch.
-
retrieve
abstract CompletableFuture<Batch> retrieve(BatchRetrieveParams params)
Retrieves a batch.
-
list
abstract CompletableFuture<BatchListPageAsync> list(BatchListParams params, RequestOptions requestOptions)
List your organization's batches.
-
list
abstract CompletableFuture<BatchListPageAsync> list(BatchListParams params)
List your organization's batches.
-
cancel
abstract 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.
-
cancel
abstract CompletableFuture<Batch> cancel(BatchCancelParams params)
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.
-
-
-
-