Skip to content

Commit 0feeafd

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): add gpt-4o-2024-11-20 model (#1201)
1 parent 3968ef1 commit 0feeafd

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-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-fb9db2d2c1f0d6b39d8ee042db5d5c59acba6ad1daf47c18792c1f5fb24b3401.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-aa9b01fc0c17eb0cbc200533fc20d6a49c5e764ceaf8049e08b294532be6e9ff.yml

src/resources/batches.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export interface BatchCreateParams {
232232
* Your input file must be formatted as a
233233
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input),
234234
* and must be uploaded with the purpose `batch`. The file can contain up to 50,000
235-
* requests, and can be up to 100 MB in size.
235+
* requests, and can be up to 200 MB in size.
236236
*/
237237
input_file_id: string;
238238

src/resources/chat/chat.ts

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export type ChatModel =
4949
| 'o1-mini'
5050
| 'o1-mini-2024-09-12'
5151
| 'gpt-4o'
52+
| 'gpt-4o-2024-11-20'
5253
| 'gpt-4o-2024-08-06'
5354
| 'gpt-4o-2024-05-13'
5455
| 'gpt-4o-realtime-preview'

src/resources/chat/completions.ts

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

252252
/**
253-
* The voice the model uses to respond. Supported voices are `alloy`, `ash`,
254-
* `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`.
253+
* The voice the model uses to respond. Supported voices are `ash`, `ballad`,
254+
* `coral`, `sage`, and `verse` (also supported but not recommended are `alloy`,
255+
* `echo`, and `shimmer`; these voices are less expressive).
255256
*/
256257
voice: 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse';
257258
}

src/resources/files.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Files extends APIResource {
2525
* [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
2626
* models.
2727
*
28-
* The Batch API only supports `.jsonl` files up to 100 MB in size. The input also
28+
* The Batch API only supports `.jsonl` files up to 200 MB in size. The input also
2929
* has a specific required
3030
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
3131
*

0 commit comments

Comments
 (0)