File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -81,17 +81,25 @@ type ChatMessageImageURL struct {
81
81
Detail ImageURLDetail `json:"detail,omitempty"`
82
82
}
83
83
84
+ type ChatMessageFile struct {
85
+ FileID string `json:"file_id,omitempty"`
86
+ FileName string `json:"file_name,omitempty"`
87
+ FileData string `json:"file_data,omitempty"`
88
+ }
89
+
84
90
type ChatMessagePartType string
85
91
86
92
const (
87
93
ChatMessagePartTypeText ChatMessagePartType = "text"
88
94
ChatMessagePartTypeImageURL ChatMessagePartType = "image_url"
95
+ ChatMessagePartTypeFile ChatMessagePartType = "file"
89
96
)
90
97
91
98
type ChatMessagePart struct {
92
99
Type ChatMessagePartType `json:"type,omitempty"`
93
100
Text string `json:"text,omitempty"`
94
101
ImageURL * ChatMessageImageURL `json:"image_url,omitempty"`
102
+ File * ChatMessageFile `json:"file,omitempty"`
95
103
}
96
104
97
105
type ChatCompletionMessage struct {
You can’t perform that action at this time.
0 commit comments