Explorar o código

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 hai 3 meses
pai
achega
9ae9040b3c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {
 	Url      string `json:"url"`
-	Detail   string `json:"detail"`
+	Detail   string `json:"detail,omitempty"`
 	MimeType string
 }