Package com.openai.services.async
Interface BatchServiceAsync
-
- All Implemented Interfaces:
public interface BatchServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
BatchServiceAsync.WithRawResponse
A view of BatchServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract BatchServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
CompletableFuture<Batch> create(BatchCreateParams params)
Creates and executes a batch from an uploaded file of requests
-
create
abstract CompletableFuture<Batch> create(BatchCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Batch> retrieve(BatchRetrieveParams params)
Retrieves a batch.
-
retrieve
abstract CompletableFuture<Batch> retrieve(BatchRetrieveParams params, RequestOptions requestOptions)
-
list
CompletableFuture<BatchListPageAsync> list()
List your organization's batches.
-
list
abstract CompletableFuture<BatchListPageAsync> list(BatchListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<BatchListPageAsync> list(BatchListParams params)
-
list
CompletableFuture<BatchListPageAsync> list(RequestOptions requestOptions)
-
cancel
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.
-
cancel
abstract CompletableFuture<Batch> cancel(BatchCancelParams params, RequestOptions requestOptions)
-
-
-
-