mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 04:40:59 +00:00
feat: sync latest openai speech struct
https://platform.openai.com/docs/api-reference/audio/createSpeech
This commit is contained in:
@@ -10,8 +10,10 @@ type AudioRequest struct {
|
|||||||
Model string `json:"model"`
|
Model string `json:"model"`
|
||||||
Input string `json:"input"`
|
Input string `json:"input"`
|
||||||
Voice string `json:"voice"`
|
Voice string `json:"voice"`
|
||||||
Speed float64 `json:"speed,omitempty"`
|
Instructions string `json:"instructions,omitempty"`
|
||||||
ResponseFormat string `json:"response_format,omitempty"`
|
ResponseFormat string `json:"response_format,omitempty"`
|
||||||
|
Speed float64 `json:"speed,omitempty"`
|
||||||
|
StreamFormat string `json:"stream_format,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *AudioRequest) GetTokenCountMeta() *types.TokenCountMeta {
|
func (r *AudioRequest) GetTokenCountMeta() *types.TokenCountMeta {
|
||||||
|
|||||||
Reference in New Issue
Block a user