Skip to content

Commit 9cfec57

Browse files
feat(api): add new, expressive voices for Realtime and Audio in Chat Completions (#1157)
https://platform.openai.com/docs/changelog
1 parent c63e59f commit 9cfec57

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 68
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-b60d5559d5150ecd3b49136064e5e251d832899770ff385b711378389afba370.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-7b0a5d715d94f75ac7795bd4d2175a0e3243af9b935a86c273f371e45583140f.yml

src/resources/chat/completions.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ export interface ChatCompletionAudioParam {
250250
format: 'wav' | 'mp3' | 'flac' | 'opus' | 'pcm16';
251251

252252
/**
253-
* Specifies the voice type. Supported voices are `alloy`, `echo`, `fable`, `onyx`,
254-
* `nova`, and `shimmer`.
253+
* The voice the model uses to respond. Supported voices are `alloy`, `ash`,
254+
* `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`.
255255
*/
256-
voice: 'alloy' | 'echo' | 'fable' | 'onyx' | 'nova' | 'shimmer';
256+
voice: 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse';
257257
}
258258

259259
/**
@@ -308,7 +308,7 @@ export interface ChatCompletionChunk {
308308
* contains a null value except for the last chunk which contains the token usage
309309
* statistics for the entire request.
310310
*/
311-
usage?: CompletionsAPI.CompletionUsage;
311+
usage?: CompletionsAPI.CompletionUsage | null;
312312
}
313313

314314
export namespace ChatCompletionChunk {

0 commit comments

Comments
 (0)