修复vision格式问题

This commit is contained in:
CaIon
2023-12-18 23:44:47 +08:00
parent f048cefed1
commit b3f1da44dd
2 changed files with 21 additions and 4 deletions

View File

@@ -19,9 +19,9 @@ type Message struct {
}
type MediaMessage struct {
Type string `json:"type"`
Text string `json:"text"`
ImageUrl MessageImageUrl `json:"image_url,omitempty"`
Type string `json:"type"`
Text string `json:"text"`
ImageUrl any `json:"image_url,omitempty"`
}
type MessageImageUrl struct {