@@ -49,6 +49,7 @@ public AsyncBatches(ApiClient apiClient) {
4949
5050 CompletableFuture <BatchJob > privateCreate (
5151 String model , BatchJobSource src , CreateBatchJobConfig config ) {
52+
5253 BuiltRequest builtRequest = batches .buildRequestForPrivateCreate (model , src , config );
5354 return this .apiClient
5455 .asyncRequest ("post" , builtRequest .path (), builtRequest .body (), builtRequest .httpOptions ())
@@ -62,6 +63,7 @@ CompletableFuture<BatchJob> privateCreate(
6263
6364 CompletableFuture <BatchJob > privateCreateEmbeddings (
6465 String model , EmbeddingsBatchJobSource src , CreateEmbeddingsBatchJobConfig config ) {
66+
6567 BuiltRequest builtRequest = batches .buildRequestForPrivateCreateEmbeddings (model , src , config );
6668 return this .apiClient
6769 .asyncRequest ("post" , builtRequest .path (), builtRequest .body (), builtRequest .httpOptions ())
@@ -83,6 +85,7 @@ CompletableFuture<BatchJob> privateCreateEmbeddings(
8385 * @return A {@link BatchJob} object that contains the info of the batch job.
8486 */
8587 public CompletableFuture <BatchJob > get (String name , GetBatchJobConfig config ) {
88+
8689 BuiltRequest builtRequest = batches .buildRequestForGet (name , config );
8790 return this .apiClient
8891 .asyncRequest ("get" , builtRequest .path (), builtRequest .body (), builtRequest .httpOptions ())
@@ -103,6 +106,7 @@ public CompletableFuture<BatchJob> get(String name, GetBatchJobConfig config) {
103106 * @param config A {@link CancelBatchJobConfig} for configuring the cancel request.
104107 */
105108 public CompletableFuture <Void > cancel (String name , CancelBatchJobConfig config ) {
109+
106110 BuiltRequest builtRequest = batches .buildRequestForCancel (name , config );
107111 return this .apiClient
108112 .asyncRequest ("post" , builtRequest .path (), builtRequest .body (), builtRequest .httpOptions ())
@@ -113,6 +117,7 @@ public CompletableFuture<Void> cancel(String name, CancelBatchJobConfig config)
113117 }
114118
115119 CompletableFuture <ListBatchJobsResponse > privateList (ListBatchJobsConfig config ) {
120+
116121 BuiltRequest builtRequest = batches .buildRequestForPrivateList (config );
117122 return this .apiClient
118123 .asyncRequest ("get" , builtRequest .path (), builtRequest .body (), builtRequest .httpOptions ())
@@ -133,6 +138,7 @@ CompletableFuture<ListBatchJobsResponse> privateList(ListBatchJobsConfig config)
133138 * @param config A {@link DeleteBatchJobConfig} for configuring the delete request.
134139 */
135140 public CompletableFuture <DeleteResourceJob > delete (String name , DeleteBatchJobConfig config ) {
141+
136142 BuiltRequest builtRequest = batches .buildRequestForDelete (name , config );
137143 return this .apiClient
138144 .asyncRequest (
0 commit comments