1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* OpenAI API
*
* The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
*
* OpenAPI spec pub version: 2.3.0
*
* Generated pub by: https://github.com/swagger-api/swagger-codegen.git
*/
/// pub Upload : The Upload object can accept byte chunks in the form of Parts.
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct Upload {
/// The intended number of bytes to be uploaded.
#[serde(rename = "bytes")]
pub bytes: i32,
/// The Unix timestamp (in seconds) for when the Upload was created.
#[serde(rename = "created_at")]
pub created_at: i32,
/// The Unix timestamp (in seconds) for when the Upload will expire.
#[serde(rename = "expires_at")]
pub expires_at: i32,
#[serde(rename = "file")]
pub file: Option<crate::models::CreateRunRequestToolChoice>,
/// The name of the file to be uploaded.
#[serde(rename = "filename")]
pub filename: String,
/// The Upload unique identifier, which can be referenced in API endpoints.
#[serde(rename = "id")]
pub id: String,
/// The object type, which is always \"upload\".
#[serde(rename = "object")]
pub object: Option<String>,
/// The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.
#[serde(rename = "purpose")]
pub purpose: String,
/// The status of the Upload.
#[serde(rename = "status")]
pub status: String,
}