Просмотр исходного кода

Merge pull request #781 from zeyugao/main

feat: Pass extra_body in OpenAI request to the backend
Calcium-Ion 10 месяцев назад
Родитель
Сommit
dc36fdedc2
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      dto/openai_request.go

+ 1 - 0
dto/openai_request.go

@@ -50,6 +50,7 @@ type GeneralOpenAIRequest struct {
 	Dimensions          int             `json:"dimensions,omitempty"`
 	Modalities          any             `json:"modalities,omitempty"`
 	Audio               any             `json:"audio,omitempty"`
+	ExtraBody           any             `json:"extra_body,omitempty"`
 }
 
 type OpenAITools struct {