Skip to content

Commit 9c72d98

Browse files
authored
Merge pull request #193 from serbanbjd/item-content-image
Add InputImage variant and image_url field to ItemContent struct
2 parents efa9985 + 780462a commit 9c72d98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/realtime/types.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ pub enum ItemRole {
137137
pub enum ItemContentType {
138138
InputText,
139139
InputAudio,
140+
InputImage,
140141
Text,
141142
Audio,
142143
}
@@ -150,6 +151,8 @@ pub struct ItemContent {
150151
pub audio: Option<String>,
151152
#[serde(skip_serializing_if = "Option::is_none")]
152153
pub transcript: Option<String>,
154+
#[serde(skip_serializing_if = "Option::is_none")]
155+
pub image_url: Option<String>,
153156
}
154157

155158
#[derive(Debug, Serialize, Deserialize, Clone, Default)]

0 commit comments

Comments
 (0)