Skip to content

Commit add4d88

Browse files
feat(api): add gpt-4o-2024-11-20 model (#13)
1 parent 791703c commit add4d88

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-12
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: 24
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

openai-java-core/src/main/kotlin/com/openai/models/BatchCreateParams.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ constructor(
8989
* Your input file must be formatted as a
9090
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and
9191
* must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests,
92-
* and can be up to 100 MB in size.
92+
* and can be up to 200 MB in size.
9393
*/
9494
@JsonProperty("input_file_id") fun inputFileId(): String? = inputFileId
9595

@@ -151,7 +151,7 @@ constructor(
151151
* Your input file must be formatted as a
152152
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and
153153
* must be uploaded with the purpose `batch`. The file can contain up to 50,000
154-
* requests, and can be up to 100 MB in size.
154+
* requests, and can be up to 200 MB in size.
155155
*/
156156
@JsonProperty("input_file_id")
157157
fun inputFileId(inputFileId: String) = apply { this.inputFileId = inputFileId }
@@ -277,7 +277,7 @@ constructor(
277277
* Your input file must be formatted as a
278278
* [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input), and
279279
* must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests,
280-
* and can be up to 100 MB in size.
280+
* and can be up to 200 MB in size.
281281
*/
282282
fun inputFileId(inputFileId: String) = apply { this.inputFileId = inputFileId }
283283

openai-java-core/src/main/kotlin/com/openai/models/ChatCompletionAudioParam.kt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ private constructor(
3333
private var validated: Boolean = false
3434

3535
/**
36-
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`, `coral`,
37-
* `echo`, `sage`, `shimmer`, and `verse`.
36+
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`, `sage`,
37+
* and `verse` (also supported but not recommended are `alloy`, `echo`, and `shimmer`; these
38+
* voices are less expressive).
3839
*/
3940
fun voice(): Voice = voice.getRequired("voice")
4041

@@ -44,8 +45,9 @@ private constructor(
4445
fun format(): Format = format.getRequired("format")
4546

4647
/**
47-
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`, `coral`,
48-
* `echo`, `sage`, `shimmer`, and `verse`.
48+
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`, `sage`,
49+
* and `verse` (also supported but not recommended are `alloy`, `echo`, and `shimmer`; these
50+
* voices are less expressive).
4951
*/
5052
@JsonProperty("voice") @ExcludeMissing fun _voice() = voice
5153

@@ -87,14 +89,16 @@ private constructor(
8789
}
8890

8991
/**
90-
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`,
91-
* `coral`, `echo`, `sage`, `shimmer`, and `verse`.
92+
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`,
93+
* `sage`, and `verse` (also supported but not recommended are `alloy`, `echo`, and
94+
* `shimmer`; these voices are less expressive).
9295
*/
9396
fun voice(voice: Voice) = voice(JsonField.of(voice))
9497

9598
/**
96-
* The voice the model uses to respond. Supported voices are `alloy`, `ash`, `ballad`,
97-
* `coral`, `echo`, `sage`, `shimmer`, and `verse`.
99+
* The voice the model uses to respond. Supported voices are `ash`, `ballad`, `coral`,
100+
* `sage`, and `verse` (also supported but not recommended are `alloy`, `echo`, and
101+
* `shimmer`; these voices are less expressive).
98102
*/
99103
@JsonProperty("voice")
100104
@ExcludeMissing

openai-java-core/src/main/kotlin/com/openai/models/ChatCompletionCreateParams.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,8 @@ constructor(
16291629

16301630
@JvmField val GPT_4O = Model(JsonField.of("gpt-4o"))
16311631

1632+
@JvmField val GPT_4O_2024_11_20 = Model(JsonField.of("gpt-4o-2024-11-20"))
1633+
16321634
@JvmField val GPT_4O_2024_08_06 = Model(JsonField.of("gpt-4o-2024-08-06"))
16331635

16341636
@JvmField val GPT_4O_2024_05_13 = Model(JsonField.of("gpt-4o-2024-05-13"))
@@ -1698,6 +1700,7 @@ constructor(
16981700
O1_MINI,
16991701
O1_MINI_2024_09_12,
17001702
GPT_4O,
1703+
GPT_4O_2024_11_20,
17011704
GPT_4O_2024_08_06,
17021705
GPT_4O_2024_05_13,
17031706
GPT_4O_REALTIME_PREVIEW,
@@ -1734,6 +1737,7 @@ constructor(
17341737
O1_MINI,
17351738
O1_MINI_2024_09_12,
17361739
GPT_4O,
1740+
GPT_4O_2024_11_20,
17371741
GPT_4O_2024_08_06,
17381742
GPT_4O_2024_05_13,
17391743
GPT_4O_REALTIME_PREVIEW,
@@ -1772,6 +1776,7 @@ constructor(
17721776
O1_MINI -> Value.O1_MINI
17731777
O1_MINI_2024_09_12 -> Value.O1_MINI_2024_09_12
17741778
GPT_4O -> Value.GPT_4O
1779+
GPT_4O_2024_11_20 -> Value.GPT_4O_2024_11_20
17751780
GPT_4O_2024_08_06 -> Value.GPT_4O_2024_08_06
17761781
GPT_4O_2024_05_13 -> Value.GPT_4O_2024_05_13
17771782
GPT_4O_REALTIME_PREVIEW -> Value.GPT_4O_REALTIME_PREVIEW
@@ -1810,6 +1815,7 @@ constructor(
18101815
O1_MINI -> Known.O1_MINI
18111816
O1_MINI_2024_09_12 -> Known.O1_MINI_2024_09_12
18121817
GPT_4O -> Known.GPT_4O
1818+
GPT_4O_2024_11_20 -> Known.GPT_4O_2024_11_20
18131819
GPT_4O_2024_08_06 -> Known.GPT_4O_2024_08_06
18141820
GPT_4O_2024_05_13 -> Known.GPT_4O_2024_05_13
18151821
GPT_4O_REALTIME_PREVIEW -> Known.GPT_4O_REALTIME_PREVIEW

openai-java-core/src/main/kotlin/com/openai/models/ChatModel.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ private constructor(
4040

4141
@JvmField val GPT_4O = ChatModel(JsonField.of("gpt-4o"))
4242

43+
@JvmField val GPT_4O_2024_11_20 = ChatModel(JsonField.of("gpt-4o-2024-11-20"))
44+
4345
@JvmField val GPT_4O_2024_08_06 = ChatModel(JsonField.of("gpt-4o-2024-08-06"))
4446

4547
@JvmField val GPT_4O_2024_05_13 = ChatModel(JsonField.of("gpt-4o-2024-05-13"))
@@ -109,6 +111,7 @@ private constructor(
109111
O1_MINI,
110112
O1_MINI_2024_09_12,
111113
GPT_4O,
114+
GPT_4O_2024_11_20,
112115
GPT_4O_2024_08_06,
113116
GPT_4O_2024_05_13,
114117
GPT_4O_REALTIME_PREVIEW,
@@ -145,6 +148,7 @@ private constructor(
145148
O1_MINI,
146149
O1_MINI_2024_09_12,
147150
GPT_4O,
151+
GPT_4O_2024_11_20,
148152
GPT_4O_2024_08_06,
149153
GPT_4O_2024_05_13,
150154
GPT_4O_REALTIME_PREVIEW,
@@ -183,6 +187,7 @@ private constructor(
183187
O1_MINI -> Value.O1_MINI
184188
O1_MINI_2024_09_12 -> Value.O1_MINI_2024_09_12
185189
GPT_4O -> Value.GPT_4O
190+
GPT_4O_2024_11_20 -> Value.GPT_4O_2024_11_20
186191
GPT_4O_2024_08_06 -> Value.GPT_4O_2024_08_06
187192
GPT_4O_2024_05_13 -> Value.GPT_4O_2024_05_13
188193
GPT_4O_REALTIME_PREVIEW -> Value.GPT_4O_REALTIME_PREVIEW
@@ -221,6 +226,7 @@ private constructor(
221226
O1_MINI -> Known.O1_MINI
222227
O1_MINI_2024_09_12 -> Known.O1_MINI_2024_09_12
223228
GPT_4O -> Known.GPT_4O
229+
GPT_4O_2024_11_20 -> Known.GPT_4O_2024_11_20
224230
GPT_4O_2024_08_06 -> Known.GPT_4O_2024_08_06
225231
GPT_4O_2024_05_13 -> Known.GPT_4O_2024_05_13
226232
GPT_4O_REALTIME_PREVIEW -> Known.GPT_4O_REALTIME_PREVIEW

0 commit comments

Comments
 (0)