@@ -104,6 +104,8 @@ public static class Message {
104
104
105
105
@ JsonIgnore
106
106
public String getStringContent () { return ((StringContent ) content ).getValue (); }
107
+ @ JsonIgnore
108
+ public StructuredContent getStructuredContent () {return (StructuredContent )content ;}
107
109
public Content getContent () { return content ; }
108
110
@ JsonIgnore
109
111
public void setStringContent (String content ) { this .content = new StringContent (content ); }
@@ -162,7 +164,7 @@ public StructuredContentItem() {}
162
164
163
165
private String type ;
164
166
private String text ;
165
- private ImageUrl image_url ;
167
+ private ImageUrl imageURL ;
166
168
167
169
public String getType () {
168
170
return type ;
@@ -180,18 +182,20 @@ public void setText(String text) {
180
182
this .text = text ;
181
183
}
182
184
183
- public ImageUrl getImage_url () {
184
- return image_url ;
185
+ public ImageUrl getImageUrl () {
186
+ return imageURL ;
185
187
}
186
188
187
- public void setImage_url (ImageUrl image_url ) {
188
- this .image_url = image_url ;
189
+ public void setImageUrl (ImageUrl imageURL ) {
190
+ this .imageURL = imageURL ;
189
191
}
190
192
193
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
191
194
public static class ImageUrl {
192
195
public ImageUrl () {}
193
196
194
197
private String url ;
198
+ private String detail ;
195
199
196
200
public String getUrl () {
197
201
return url ;
@@ -200,6 +204,14 @@ public String getUrl() {
200
204
public void setUrl (String url ) {
201
205
this .url = url ;
202
206
}
207
+
208
+ public String getDetail () {
209
+ return detail ;
210
+ }
211
+
212
+ public void setDetail (String detail ) {
213
+ this .detail = detail ;
214
+ }
203
215
}
204
216
}
205
217
0 commit comments