We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2054db0 commit a62919eCopy full SHA for a62919e
messages.go
@@ -41,6 +41,7 @@ type MessageContent struct {
41
Type string `json:"type"`
42
Text *MessageText `json:"text,omitempty"`
43
ImageFile *ImageFile `json:"image_file,omitempty"`
44
+ ImageURL *ImageURL `json:"image_url,omitempty"`
45
}
46
type MessageText struct {
47
Value string `json:"value"`
@@ -51,6 +52,11 @@ type ImageFile struct {
51
52
FileID string `json:"file_id"`
53
54
55
+type ImageURL struct {
56
+ URL string `json:"url"`
57
+ Detail string `json:"detail"`
58
+}
59
+
60
type MessageRequest struct {
61
Role string `json:"role"`
62
Content string `json:"content"`
0 commit comments