Skip to content

Commit 8dabbd3

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): add gpt-4o-2024-11-20 model (#131)
1 parent 23476d8 commit 8dabbd3

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
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

batch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ type BatchNewParams struct {
308308
// Your input file must be formatted as a
309309
// [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input),
310310
// and must be uploaded with the purpose `batch`. The file can contain up to 50,000
311-
// requests, and can be up to 100 MB in size.
311+
// requests, and can be up to 200 MB in size.
312312
InputFileID param.Field[string] `json:"input_file_id,required"`
313313
// Optional custom metadata for the batch.
314314
Metadata param.Field[map[string]string] `json:"metadata"`

chat.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const (
3535
ChatModelO1Mini ChatModel = "o1-mini"
3636
ChatModelO1Mini2024_09_12 ChatModel = "o1-mini-2024-09-12"
3737
ChatModelGPT4o ChatModel = "gpt-4o"
38+
ChatModelGPT4o2024_11_20 ChatModel = "gpt-4o-2024-11-20"
3839
ChatModelGPT4o2024_08_06 ChatModel = "gpt-4o-2024-08-06"
3940
ChatModelGPT4o2024_05_13 ChatModel = "gpt-4o-2024-05-13"
4041
ChatModelGPT4oRealtimePreview ChatModel = "gpt-4o-realtime-preview"

chatcompletion.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,9 @@ 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-
// The voice the model uses to respond. Supported voices are `alloy`, `ash`,
458-
// `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`.
457+
// The voice the model uses to respond. Supported voices are `ash`, `ballad`,
458+
// `coral`, `sage`, and `verse` (also supported but not recommended are `alloy`,
459+
// `echo`, and `shimmer`; these voices are less expressive).
459460
Voice param.Field[ChatCompletionAudioParamVoice] `json:"voice,required"`
460461
}
461462

@@ -483,8 +484,9 @@ func (r ChatCompletionAudioParamFormat) IsKnown() bool {
483484
return false
484485
}
485486

486-
// The voice the model uses to respond. Supported voices are `alloy`, `ash`,
487-
// `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`.
487+
// The voice the model uses to respond. Supported voices are `ash`, `ballad`,
488+
// `coral`, `sage`, and `verse` (also supported but not recommended are `alloy`,
489+
// `echo`, and `shimmer`; these voices are less expressive).
488490
type ChatCompletionAudioParamVoice string
489491

490492
const (

file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewFileService(opts ...option.RequestOption) (r *FileService) {
5555
// [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
5656
// models.
5757
//
58-
// The Batch API only supports `.jsonl` files up to 100 MB in size. The input also
58+
// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also
5959
// has a specific required
6060
// [format](https://platform.openai.com/docs/api-reference/batch/request-input).
6161
//

0 commit comments

Comments
 (0)