@@ -51,7 +51,7 @@ CompletableFuture<BatchJob> privateCreate(
5151 String model , BatchJobSource src , CreateBatchJobConfig config ) {
5252 BuiltRequest builtRequest = batches .buildRequestForPrivateCreate (model , src , config );
5353 return this .apiClient
54- .asyncRequest ("post" , builtRequest .path , builtRequest .body , builtRequest .httpOptions )
54+ .asyncRequest ("post" , builtRequest .path () , builtRequest .body () , builtRequest .httpOptions () )
5555 .thenApplyAsync (
5656 response -> {
5757 try (ApiResponse res = response ) {
@@ -64,7 +64,7 @@ CompletableFuture<BatchJob> privateCreateEmbeddings(
6464 String model , EmbeddingsBatchJobSource src , CreateEmbeddingsBatchJobConfig config ) {
6565 BuiltRequest builtRequest = batches .buildRequestForPrivateCreateEmbeddings (model , src , config );
6666 return this .apiClient
67- .asyncRequest ("post" , builtRequest .path , builtRequest .body , builtRequest .httpOptions )
67+ .asyncRequest ("post" , builtRequest .path () , builtRequest .body () , builtRequest .httpOptions () )
6868 .thenApplyAsync (
6969 response -> {
7070 try (ApiResponse res = response ) {
@@ -85,7 +85,7 @@ CompletableFuture<BatchJob> privateCreateEmbeddings(
8585 public CompletableFuture <BatchJob > get (String name , GetBatchJobConfig config ) {
8686 BuiltRequest builtRequest = batches .buildRequestForGet (name , config );
8787 return this .apiClient
88- .asyncRequest ("get" , builtRequest .path , builtRequest .body , builtRequest .httpOptions )
88+ .asyncRequest ("get" , builtRequest .path () , builtRequest .body () , builtRequest .httpOptions () )
8989 .thenApplyAsync (
9090 response -> {
9191 try (ApiResponse res = response ) {
@@ -105,7 +105,7 @@ public CompletableFuture<BatchJob> get(String name, GetBatchJobConfig config) {
105105 public CompletableFuture <Void > cancel (String name , CancelBatchJobConfig config ) {
106106 BuiltRequest builtRequest = batches .buildRequestForCancel (name , config );
107107 return this .apiClient
108- .asyncRequest ("post" , builtRequest .path , builtRequest .body , builtRequest .httpOptions )
108+ .asyncRequest ("post" , builtRequest .path () , builtRequest .body () , builtRequest .httpOptions () )
109109 .thenAccept (
110110 response -> {
111111 try (ApiResponse res = response ) {}
@@ -115,7 +115,7 @@ public CompletableFuture<Void> cancel(String name, CancelBatchJobConfig config)
115115 CompletableFuture <ListBatchJobsResponse > privateList (ListBatchJobsConfig config ) {
116116 BuiltRequest builtRequest = batches .buildRequestForPrivateList (config );
117117 return this .apiClient
118- .asyncRequest ("get" , builtRequest .path , builtRequest .body , builtRequest .httpOptions )
118+ .asyncRequest ("get" , builtRequest .path () , builtRequest .body () , builtRequest .httpOptions () )
119119 .thenApplyAsync (
120120 response -> {
121121 try (ApiResponse res = response ) {
@@ -135,7 +135,8 @@ CompletableFuture<ListBatchJobsResponse> privateList(ListBatchJobsConfig config)
135135 public CompletableFuture <DeleteResourceJob > delete (String name , DeleteBatchJobConfig config ) {
136136 BuiltRequest builtRequest = batches .buildRequestForDelete (name , config );
137137 return this .apiClient
138- .asyncRequest ("delete" , builtRequest .path , builtRequest .body , builtRequest .httpOptions )
138+ .asyncRequest (
139+ "delete" , builtRequest .path (), builtRequest .body (), builtRequest .httpOptions ())
139140 .thenApplyAsync (
140141 response -> {
141142 try (ApiResponse res = response ) {
0 commit comments