openai_struct/models/batch_request_input.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub BatchRequestInput : The per-line object of the batch input file
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct BatchRequestInput {
18 /// A developer-provided per-request id that will be used to match outputs to inputs. Must be unique for each request in a batch.
19 #[serde(rename = "custom_id")]
20 pub custom_id: Option<String>,
21 /// The HTTP method to be used for the request. Currently only `POST` is supported.
22 #[serde(rename = "method")]
23 pub method: Option<String>,
24 /// The OpenAI API relative URL to be used for the request. Currently `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported.
25 #[serde(rename = "url")]
26 pub url: Option<String>,
27}