Skip to content

Commit 48a685f

Browse files
feat(api): Add o3-pro model IDs
1 parent fa66616 commit 48a685f

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 86
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-4865dda2b62927bd141cbc85f81be3d88602f103e2c581e15eb1caded3e3aaa2.yml
3-
openapi_spec_hash: 7d14a9b23ef4ac93ea46d629601b6f6b
4-
config_hash: ed1e6b3c5f93d12b80d31167f55c557c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-3ae9c18dd7ccfc3ac5206f24394665f563a19015cfa8847b2801a2694d012abc.yml
3+
openapi_spec_hash: 48175b03b58805cd5c80793c66fd54e5
4+
config_hash: 4caff63b74a41f71006987db702f2918

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ private constructor(
233233

234234
@JvmField val O1_PRO_2025_03_19 = of("o1-pro-2025-03-19")
235235

236+
@JvmField val O3_PRO = of("o3-pro")
237+
238+
@JvmField val O3_PRO_2025_06_10 = of("o3-pro-2025-06-10")
239+
236240
@JvmField val COMPUTER_USE_PREVIEW = of("computer-use-preview")
237241

238242
@JvmField val COMPUTER_USE_PREVIEW_2025_03_11 = of("computer-use-preview-2025-03-11")
@@ -244,6 +248,8 @@ private constructor(
244248
enum class Known {
245249
O1_PRO,
246250
O1_PRO_2025_03_19,
251+
O3_PRO,
252+
O3_PRO_2025_06_10,
247253
COMPUTER_USE_PREVIEW,
248254
COMPUTER_USE_PREVIEW_2025_03_11,
249255
}
@@ -260,6 +266,8 @@ private constructor(
260266
enum class Value {
261267
O1_PRO,
262268
O1_PRO_2025_03_19,
269+
O3_PRO,
270+
O3_PRO_2025_06_10,
263271
COMPUTER_USE_PREVIEW,
264272
COMPUTER_USE_PREVIEW_2025_03_11,
265273
/**
@@ -280,6 +288,8 @@ private constructor(
280288
when (this) {
281289
O1_PRO -> Value.O1_PRO
282290
O1_PRO_2025_03_19 -> Value.O1_PRO_2025_03_19
291+
O3_PRO -> Value.O3_PRO
292+
O3_PRO_2025_06_10 -> Value.O3_PRO_2025_06_10
283293
COMPUTER_USE_PREVIEW -> Value.COMPUTER_USE_PREVIEW
284294
COMPUTER_USE_PREVIEW_2025_03_11 -> Value.COMPUTER_USE_PREVIEW_2025_03_11
285295
else -> Value._UNKNOWN
@@ -298,6 +308,8 @@ private constructor(
298308
when (this) {
299309
O1_PRO -> Known.O1_PRO
300310
O1_PRO_2025_03_19 -> Known.O1_PRO_2025_03_19
311+
O3_PRO -> Known.O3_PRO
312+
O3_PRO_2025_06_10 -> Known.O3_PRO_2025_06_10
301313
COMPUTER_USE_PREVIEW -> Known.COMPUTER_USE_PREVIEW
302314
COMPUTER_USE_PREVIEW_2025_03_11 -> Known.COMPUTER_USE_PREVIEW_2025_03_11
303315
else -> throw OpenAIInvalidDataException("Unknown ResponsesOnlyModel: $value")

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ private constructor(
232232

233233
@JvmField val O1_PRO_2025_03_19 = of("o1-pro-2025-03-19")
234234

235+
@JvmField val O3_PRO = of("o3-pro")
236+
237+
@JvmField val O3_PRO_2025_06_10 = of("o3-pro-2025-06-10")
238+
235239
@JvmField val COMPUTER_USE_PREVIEW = of("computer-use-preview")
236240

237241
@JvmField val COMPUTER_USE_PREVIEW_2025_03_11 = of("computer-use-preview-2025-03-11")
@@ -243,6 +247,8 @@ private constructor(
243247
enum class Known {
244248
O1_PRO,
245249
O1_PRO_2025_03_19,
250+
O3_PRO,
251+
O3_PRO_2025_06_10,
246252
COMPUTER_USE_PREVIEW,
247253
COMPUTER_USE_PREVIEW_2025_03_11,
248254
}
@@ -259,6 +265,8 @@ private constructor(
259265
enum class Value {
260266
O1_PRO,
261267
O1_PRO_2025_03_19,
268+
O3_PRO,
269+
O3_PRO_2025_06_10,
262270
COMPUTER_USE_PREVIEW,
263271
COMPUTER_USE_PREVIEW_2025_03_11,
264272
/**
@@ -279,6 +287,8 @@ private constructor(
279287
when (this) {
280288
O1_PRO -> Value.O1_PRO
281289
O1_PRO_2025_03_19 -> Value.O1_PRO_2025_03_19
290+
O3_PRO -> Value.O3_PRO
291+
O3_PRO_2025_06_10 -> Value.O3_PRO_2025_06_10
282292
COMPUTER_USE_PREVIEW -> Value.COMPUTER_USE_PREVIEW
283293
COMPUTER_USE_PREVIEW_2025_03_11 -> Value.COMPUTER_USE_PREVIEW_2025_03_11
284294
else -> Value._UNKNOWN
@@ -297,6 +307,8 @@ private constructor(
297307
when (this) {
298308
O1_PRO -> Known.O1_PRO
299309
O1_PRO_2025_03_19 -> Known.O1_PRO_2025_03_19
310+
O3_PRO -> Known.O3_PRO
311+
O3_PRO_2025_06_10 -> Known.O3_PRO_2025_06_10
300312
COMPUTER_USE_PREVIEW -> Known.COMPUTER_USE_PREVIEW
301313
COMPUTER_USE_PREVIEW_2025_03_11 -> Known.COMPUTER_USE_PREVIEW_2025_03_11
302314
else -> throw OpenAIInvalidDataException("Unknown ResponsesOnlyModel: $value")

0 commit comments

Comments
 (0)