Procházet zdrojové kódy

fix: the "detail" field is empty, an empty field was sent to the upstream system.

Seefs před 1 měsícem
rodič
revize
ded4a124e2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 }