@@ -79,17 +79,30 @@ type ChatMessageImageURL struct {
79
79
Detail ImageURLDetail `json:"detail,omitempty"`
80
80
}
81
81
82
+ type ChatMessageInputAudio struct {
83
+ Data string `json:"data,omitempty"`
84
+ Format string `json:"format,omitempty"`
85
+ }
86
+
87
+ type ChatMessageVideoURL struct {
88
+ URL string `json:"url,omitempty"`
89
+ }
90
+
82
91
type ChatMessagePartType string
83
92
84
93
const (
85
- ChatMessagePartTypeText ChatMessagePartType = "text"
86
- ChatMessagePartTypeImageURL ChatMessagePartType = "image_url"
94
+ ChatMessagePartTypeText ChatMessagePartType = "text"
95
+ ChatMessagePartTypeImageURL ChatMessagePartType = "image_url"
96
+ ChatMessagePartTypeInputAudio ChatMessagePartType = "input_audio"
97
+ ChatMessagePartTypeVideoURL ChatMessagePartType = "video_url"
87
98
)
88
99
89
100
type ChatMessagePart struct {
90
- Type ChatMessagePartType `json:"type,omitempty"`
91
- Text string `json:"text,omitempty"`
92
- ImageURL * ChatMessageImageURL `json:"image_url,omitempty"`
101
+ Type ChatMessagePartType `json:"type,omitempty"`
102
+ Text string `json:"text,omitempty"`
103
+ ImageURL * ChatMessageImageURL `json:"image_url,omitempty"`
104
+ InputAudio * ChatMessageInputAudio `json:"input_audio,omitempty"`
105
+ VideoURL * ChatMessageVideoURL `json:"video_url,omitempty"`
93
106
}
94
107
95
108
type ChatCompletionMessage struct {
0 commit comments