diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a899ac7..2ce25fe 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.31" + ".": "0.1.0-alpha.32" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 0b08725..39413df 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 68 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-b60d5559d5150ecd3b49136064e5e251d832899770ff385b711378389afba370.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-7b0a5d715d94f75ac7795bd4d2175a0e3243af9b935a86c273f371e45583140f.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b91132..4700755 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.32 (2024-10-30) + +Full Changelog: [v0.1.0-alpha.31...v0.1.0-alpha.32](https://github.com/openai/openai-go/compare/v0.1.0-alpha.31...v0.1.0-alpha.32) + +### Features + +* **api:** add new, expressive voices for Realtime and Audio in Chat Completions ([#101](https://github.com/openai/openai-go/issues/101)) ([f946acc](https://github.com/openai/openai-go/commit/f946acc71a92f885bed87f0d4e724fb40cae0f14)) + ## 0.1.0-alpha.31 (2024-10-23) Full Changelog: [v0.1.0-alpha.30...v0.1.0-alpha.31](https://github.com/openai/openai-go/compare/v0.1.0-alpha.30...v0.1.0-alpha.31) diff --git a/README.md b/README.md index 99414bd..9b8fcee 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Or to pin the version: ```sh -go get -u 'github.com/openai/openai-go@v0.1.0-alpha.31' +go get -u 'github.com/openai/openai-go@v0.1.0-alpha.32' ``` diff --git a/chatcompletion.go b/chatcompletion.go index 177831a..d21896f 100644 --- a/chatcompletion.go +++ b/chatcompletion.go @@ -454,8 +454,8 @@ type ChatCompletionAudioParam struct { // Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`, // or `pcm16`. Format param.Field[ChatCompletionAudioParamFormat] `json:"format,required"` - // Specifies the voice type. Supported voices are `alloy`, `echo`, `fable`, `onyx`, - // `nova`, and `shimmer`. + // The voice the model uses to respond. Supported voices are `alloy`, `ash`, + // `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. Voice param.Field[ChatCompletionAudioParamVoice] `json:"voice,required"` } @@ -483,22 +483,24 @@ func (r ChatCompletionAudioParamFormat) IsKnown() bool { return false } -// Specifies the voice type. Supported voices are `alloy`, `echo`, `fable`, `onyx`, -// `nova`, and `shimmer`. +// The voice the model uses to respond. Supported voices are `alloy`, `ash`, +// `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`. type ChatCompletionAudioParamVoice string const ( ChatCompletionAudioParamVoiceAlloy ChatCompletionAudioParamVoice = "alloy" + ChatCompletionAudioParamVoiceAsh ChatCompletionAudioParamVoice = "ash" + ChatCompletionAudioParamVoiceBallad ChatCompletionAudioParamVoice = "ballad" + ChatCompletionAudioParamVoiceCoral ChatCompletionAudioParamVoice = "coral" ChatCompletionAudioParamVoiceEcho ChatCompletionAudioParamVoice = "echo" - ChatCompletionAudioParamVoiceFable ChatCompletionAudioParamVoice = "fable" - ChatCompletionAudioParamVoiceOnyx ChatCompletionAudioParamVoice = "onyx" - ChatCompletionAudioParamVoiceNova ChatCompletionAudioParamVoice = "nova" + ChatCompletionAudioParamVoiceSage ChatCompletionAudioParamVoice = "sage" ChatCompletionAudioParamVoiceShimmer ChatCompletionAudioParamVoice = "shimmer" + ChatCompletionAudioParamVoiceVerse ChatCompletionAudioParamVoice = "verse" ) func (r ChatCompletionAudioParamVoice) IsKnown() bool { switch r { - case ChatCompletionAudioParamVoiceAlloy, ChatCompletionAudioParamVoiceEcho, ChatCompletionAudioParamVoiceFable, ChatCompletionAudioParamVoiceOnyx, ChatCompletionAudioParamVoiceNova, ChatCompletionAudioParamVoiceShimmer: + case ChatCompletionAudioParamVoiceAlloy, ChatCompletionAudioParamVoiceAsh, ChatCompletionAudioParamVoiceBallad, ChatCompletionAudioParamVoiceCoral, ChatCompletionAudioParamVoiceEcho, ChatCompletionAudioParamVoiceSage, ChatCompletionAudioParamVoiceShimmer, ChatCompletionAudioParamVoiceVerse: return true } return false @@ -531,7 +533,7 @@ type ChatCompletionChunk struct { // `stream_options: {"include_usage": true}` in your request. When present, it // contains a null value except for the last chunk which contains the token usage // statistics for the entire request. - Usage CompletionUsage `json:"usage"` + Usage CompletionUsage `json:"usage,nullable"` JSON chatCompletionChunkJSON `json:"-"` } diff --git a/internal/version.go b/internal/version.go index 3cc749b..e319672 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.1.0-alpha.31" // x-release-please-version +const PackageVersion = "0.1.0-alpha.32" // x-release-please-version