Skip to content

Commit 9ae9040

Browse files
authored
Merge pull request #3401 from seefs001/fix/convert-openai-detail-field
fix: the "detail" field is empty, an empty field was sent to upstream
2 parents 0191a68 + ded4a12 commit 9ae9040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dto/openai_request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func (m *MediaContent) GetVideoUrl() *MessageVideoUrl {
393393

394394
type MessageImageUrl struct {
395395
Url string `json:"url"`
396-
Detail string `json:"detail"`
396+
Detail string `json:"detail,omitempty"`
397397
MimeType string
398398
}
399399

0 commit comments

Comments
 (0)