Skip to content

Commit 8a9156f

Browse files
authored
Adds file_url to InputFile. Makes text on InputText public. (#441)
1 parent 417f377 commit 8a9156f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

async-openai/src/types/responses.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub enum ContentType {
9696

9797
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
9898
pub struct InputText {
99-
text: String,
99+
pub text: String,
100100
}
101101

102102
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Default, Builder)]
@@ -137,6 +137,9 @@ pub struct InputFile {
137137
/// The name of the file to be sent to the model.
138138
#[serde(skip_serializing_if = "Option::is_none")]
139139
filename: Option<String>,
140+
/// The URL of the file to be sent to the model.
141+
#[serde(skip_serializing_if = "Option::is_none")]
142+
file_url: Option<String>,
140143
}
141144

142145
/// Builder for a Responses API request.

0 commit comments

Comments
 (0)