diff --git a/async-openai/src/types/responses.rs b/async-openai/src/types/responses.rs index e3a87156..369b852a 100644 --- a/async-openai/src/types/responses.rs +++ b/async-openai/src/types/responses.rs @@ -96,7 +96,7 @@ pub enum ContentType { #[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] pub struct InputText { - text: String, + pub text: String, } #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Default, Builder)] @@ -137,6 +137,9 @@ pub struct InputFile { /// The name of the file to be sent to the model. #[serde(skip_serializing_if = "Option::is_none")] filename: Option, + /// The URL of the file to be sent to the model. + #[serde(skip_serializing_if = "Option::is_none")] + file_url: Option, } /// Builder for a Responses API request.