openai_struct/models/
chat_completion_request_message_content_part_file_file.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, PartialEq)]
15pub struct ChatCompletionRequestMessageContentPartFileFile {
16    /// The base64 encoded file data, used when passing the file to the model  as a string.
17    #[serde(rename = "file_data")]
18    pub file_data: Option<String>,
19    /// The ID of an uploaded file to use as input.
20    #[serde(rename = "file_id")]
21    pub file_id: Option<String>,
22    /// The name of the file, used when passing the file to the model as a  string.
23    #[serde(rename = "filename")]
24    pub filename: Option<String>,
25}