Browse Source

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

fix: the "detail" field is empty, an empty field was sent to upstream
Calcium-Ion 1 month ago
parent
commit
9ae9040b3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dto/openai_request.go

+ 1 - 1
dto/openai_request.go

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