@@ -49,6 +49,7 @@ def create(
49
49
endpoint : Literal ["/v1/responses" , "/v1/chat/completions" , "/v1/embeddings" , "/v1/completions" ],
50
50
input_file_id : str ,
51
51
metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
52
+ output_expires_after : batch_create_params .OutputExpiresAfter | NotGiven = NOT_GIVEN ,
52
53
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
54
# The extra values given here take precedence over values defined on the client or passed to this method.
54
55
extra_headers : Headers | None = None ,
@@ -85,6 +86,9 @@ def create(
85
86
Keys are strings with a maximum length of 64 characters. Values are strings with
86
87
a maximum length of 512 characters.
87
88
89
+ output_expires_after: The expiration policy for the output and/or error file that are generated for a
90
+ batch.
91
+
88
92
extra_headers: Send extra headers
89
93
90
94
extra_query: Add additional query parameters to the request
@@ -101,6 +105,7 @@ def create(
101
105
"endpoint" : endpoint ,
102
106
"input_file_id" : input_file_id ,
103
107
"metadata" : metadata ,
108
+ "output_expires_after" : output_expires_after ,
104
109
},
105
110
batch_create_params .BatchCreateParams ,
106
111
),
@@ -259,6 +264,7 @@ async def create(
259
264
endpoint : Literal ["/v1/responses" , "/v1/chat/completions" , "/v1/embeddings" , "/v1/completions" ],
260
265
input_file_id : str ,
261
266
metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
267
+ output_expires_after : batch_create_params .OutputExpiresAfter | NotGiven = NOT_GIVEN ,
262
268
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
263
269
# The extra values given here take precedence over values defined on the client or passed to this method.
264
270
extra_headers : Headers | None = None ,
@@ -295,6 +301,9 @@ async def create(
295
301
Keys are strings with a maximum length of 64 characters. Values are strings with
296
302
a maximum length of 512 characters.
297
303
304
+ output_expires_after: The expiration policy for the output and/or error file that are generated for a
305
+ batch.
306
+
298
307
extra_headers: Send extra headers
299
308
300
309
extra_query: Add additional query parameters to the request
@@ -311,6 +320,7 @@ async def create(
311
320
"endpoint" : endpoint ,
312
321
"input_file_id" : input_file_id ,
313
322
"metadata" : metadata ,
323
+ "output_expires_after" : output_expires_after ,
314
324
},
315
325
batch_create_params .BatchCreateParams ,
316
326
),
0 commit comments