@@ -49,6 +49,7 @@ def create(
4949 endpoint : Literal ["/v1/responses" , "/v1/chat/completions" , "/v1/embeddings" , "/v1/completions" ],
5050 input_file_id : str ,
5151 metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
52+ output_expires_after : batch_create_params .OutputExpiresAfter | NotGiven = NOT_GIVEN ,
5253 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5354 # The extra values given here take precedence over values defined on the client or passed to this method.
5455 extra_headers : Headers | None = None ,
@@ -85,6 +86,9 @@ def create(
8586 Keys are strings with a maximum length of 64 characters. Values are strings with
8687 a maximum length of 512 characters.
8788
89+ output_expires_after: The expiration policy for the output and/or error file that are generated for a
90+ batch.
91+
8892 extra_headers: Send extra headers
8993
9094 extra_query: Add additional query parameters to the request
@@ -101,6 +105,7 @@ def create(
101105 "endpoint" : endpoint ,
102106 "input_file_id" : input_file_id ,
103107 "metadata" : metadata ,
108+ "output_expires_after" : output_expires_after ,
104109 },
105110 batch_create_params .BatchCreateParams ,
106111 ),
@@ -259,6 +264,7 @@ async def create(
259264 endpoint : Literal ["/v1/responses" , "/v1/chat/completions" , "/v1/embeddings" , "/v1/completions" ],
260265 input_file_id : str ,
261266 metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
267+ output_expires_after : batch_create_params .OutputExpiresAfter | NotGiven = NOT_GIVEN ,
262268 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
263269 # The extra values given here take precedence over values defined on the client or passed to this method.
264270 extra_headers : Headers | None = None ,
@@ -295,6 +301,9 @@ async def create(
295301 Keys are strings with a maximum length of 64 characters. Values are strings with
296302 a maximum length of 512 characters.
297303
304+ output_expires_after: The expiration policy for the output and/or error file that are generated for a
305+ batch.
306+
298307 extra_headers: Send extra headers
299308
300309 extra_query: Add additional query parameters to the request
@@ -311,6 +320,7 @@ async def create(
311320 "endpoint" : endpoint ,
312321 "input_file_id" : input_file_id ,
313322 "metadata" : metadata ,
323+ "output_expires_after" : output_expires_after ,
314324 },
315325 batch_create_params .BatchCreateParams ,
316326 ),
0 commit comments