Merge pull request #3401 from seefs001/fix/convert-openai-detail-field

fix: the "detail" field is empty, an empty field was sent to upstream
This commit is contained in:
Calcium-Ion
2026-03-23 15:04:06 +08:00
committed by GitHub

View File

@@ -393,7 +393,7 @@ func (m *MediaContent) GetVideoUrl() *MessageVideoUrl {
type MessageImageUrl struct {
Url string `json:"url"`
Detail string `json:"detail"`
Detail string `json:"detail,omitempty"`
MimeType string
}