@@ -40,7 +40,7 @@ def create(
40
40
self ,
41
41
* ,
42
42
completion_window : Literal ["24h" ],
43
- endpoint : Literal ["/v1/chat/completions" ],
43
+ endpoint : Literal ["/v1/chat/completions" , "/v1/embeddings" ],
44
44
input_file_id : str ,
45
45
metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
46
46
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -57,8 +57,8 @@ def create(
57
57
completion_window: The time frame within which the batch should be processed. Currently only `24h`
58
58
is supported.
59
59
60
- endpoint: The endpoint to be used for all requests in the batch. Currently only
61
- `/v1/chat/completions` is supported.
60
+ endpoint: The endpoint to be used for all requests in the batch. Currently
61
+ `/v1/chat/completions` and `/v1/embeddings` are supported.
62
62
63
63
input_file_id: The ID of an uploaded file that contains requests for the new batch.
64
64
@@ -228,7 +228,7 @@ async def create(
228
228
self ,
229
229
* ,
230
230
completion_window : Literal ["24h" ],
231
- endpoint : Literal ["/v1/chat/completions" ],
231
+ endpoint : Literal ["/v1/chat/completions" , "/v1/embeddings" ],
232
232
input_file_id : str ,
233
233
metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
234
234
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -245,8 +245,8 @@ async def create(
245
245
completion_window: The time frame within which the batch should be processed. Currently only `24h`
246
246
is supported.
247
247
248
- endpoint: The endpoint to be used for all requests in the batch. Currently only
249
- `/v1/chat/completions` is supported.
248
+ endpoint: The endpoint to be used for all requests in the batch. Currently
249
+ `/v1/chat/completions` and `/v1/embeddings` are supported.
250
250
251
251
input_file_id: The ID of an uploaded file that contains requests for the new batch.
252
252
0 commit comments