@@ -454,8 +454,8 @@ type ChatCompletionAudioParam struct {
454454 // Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`,
455455 // or `pcm16`.
456456 Format param.Field [ChatCompletionAudioParamFormat ] `json:"format,required"`
457- // Specifies the voice type . Supported voices are `alloy`, `echo`, `fable`, `onyx `,
458- // `nova `, and ` shimmer`.
457+ // The voice the model uses to respond . Supported voices are `alloy`, `ash `,
458+ // `ballad `, `coral`, `echo`, `sage`, ` shimmer`, and `verse `.
459459 Voice param.Field [ChatCompletionAudioParamVoice ] `json:"voice,required"`
460460}
461461
@@ -483,22 +483,24 @@ func (r ChatCompletionAudioParamFormat) IsKnown() bool {
483483 return false
484484}
485485
486- // Specifies the voice type . Supported voices are `alloy`, `echo`, `fable`, `onyx `,
487- // `nova `, and ` shimmer`.
486+ // The voice the model uses to respond . Supported voices are `alloy`, `ash `,
487+ // `ballad `, `coral`, `echo`, `sage`, ` shimmer`, and `verse `.
488488type ChatCompletionAudioParamVoice string
489489
490490const (
491491 ChatCompletionAudioParamVoiceAlloy ChatCompletionAudioParamVoice = "alloy"
492+ ChatCompletionAudioParamVoiceAsh ChatCompletionAudioParamVoice = "ash"
493+ ChatCompletionAudioParamVoiceBallad ChatCompletionAudioParamVoice = "ballad"
494+ ChatCompletionAudioParamVoiceCoral ChatCompletionAudioParamVoice = "coral"
492495 ChatCompletionAudioParamVoiceEcho ChatCompletionAudioParamVoice = "echo"
493- ChatCompletionAudioParamVoiceFable ChatCompletionAudioParamVoice = "fable"
494- ChatCompletionAudioParamVoiceOnyx ChatCompletionAudioParamVoice = "onyx"
495- ChatCompletionAudioParamVoiceNova ChatCompletionAudioParamVoice = "nova"
496+ ChatCompletionAudioParamVoiceSage ChatCompletionAudioParamVoice = "sage"
496497 ChatCompletionAudioParamVoiceShimmer ChatCompletionAudioParamVoice = "shimmer"
498+ ChatCompletionAudioParamVoiceVerse ChatCompletionAudioParamVoice = "verse"
497499)
498500
499501func (r ChatCompletionAudioParamVoice ) IsKnown () bool {
500502 switch r {
501- case ChatCompletionAudioParamVoiceAlloy , ChatCompletionAudioParamVoiceEcho , ChatCompletionAudioParamVoiceFable , ChatCompletionAudioParamVoiceOnyx , ChatCompletionAudioParamVoiceNova , ChatCompletionAudioParamVoiceShimmer :
503+ case ChatCompletionAudioParamVoiceAlloy , ChatCompletionAudioParamVoiceAsh , ChatCompletionAudioParamVoiceBallad , ChatCompletionAudioParamVoiceCoral , ChatCompletionAudioParamVoiceEcho , ChatCompletionAudioParamVoiceSage , ChatCompletionAudioParamVoiceShimmer , ChatCompletionAudioParamVoiceVerse :
502504 return true
503505 }
504506 return false
@@ -531,7 +533,7 @@ type ChatCompletionChunk struct {
531533 // `stream_options: {"include_usage": true}` in your request. When present, it
532534 // contains a null value except for the last chunk which contains the token usage
533535 // statistics for the entire request.
534- Usage CompletionUsage `json:"usage"`
536+ Usage CompletionUsage `json:"usage,nullable "`
535537 JSON chatCompletionChunkJSON `json:"-"`
536538}
537539
0 commit comments