소스 검색

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

feitianbubu 2 달 전
부모
커밋
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 {