openai_struct/models/create_upload_request.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#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct CreateUploadRequest {
16 /// The number of bytes in the file you are uploading.
17 #[serde(rename = "bytes")]
18 pub bytes: i32,
19 /// The name of the file to upload.
20 #[serde(rename = "filename")]
21 pub filename: String,
22 /// The MIME type of the file. This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.
23 #[serde(rename = "mime_type")]
24 pub mime_type: String,
25 /// The intended purpose of the uploaded file. See the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose).
26 #[serde(rename = "purpose")]
27 pub purpose: String,
28}