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