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

feat: sync latest openai speech struct
https://platform.openai.com/docs/api-reference/audio/createSpeech

feitianbubu 2 месяцев назад
Родитель
Сommit
22ff8e2cbe
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      dto/audio.go

+ 3 - 1
dto/audio.go

@@ -10,8 +10,10 @@ type AudioRequest struct {
 	Model          string  `json:"model"`
 	Input          string  `json:"input"`
 	Voice          string  `json:"voice"`
-	Speed          float64 `json:"speed,omitempty"`
+	Instructions   string  `json:"instructions,omitempty"`
 	ResponseFormat string  `json:"response_format,omitempty"`
+	Speed          float64 `json:"speed,omitempty"`
+	StreamFormat   string  `json:"stream_format,omitempty"`
 }
 
 func (r *AudioRequest) GetTokenCountMeta() *types.TokenCountMeta {