Selaa lähdekoodia

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

Seefs 1 kuukausi sitten
vanhempi
commit
ded4a124e2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 }