You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: async-openai/src/types/batches/batch.rs
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,10 @@ pub struct BatchRequest {
21
21
/// Your input file must be formatted as a [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.
22
22
pubinput_file_id:String,
23
23
24
-
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
24
+
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`,
25
+
/// `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, and `/v1/moderations` are
26
+
/// supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000
27
+
/// embedding inputs across all requests in the batch.
25
28
pubendpoint:BatchEndpoint,
26
29
27
30
/// The time frame within which the batch should be processed. Currently only `24h` is supported.
/// The HTTP method to be used for the request. Currently only `POST` is supported.
183
188
pubmethod:BatchRequestInputMethod,
184
-
/// The OpenAI API relative URL to be used for the request. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported.
189
+
/// The OpenAI API relative URL to be used for the request. Currently `/v1/responses`,
190
+
/// `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, and `/v1/moderations` are supported.
0 commit comments