Skip to content

Commit a6eeb3f

Browse files
feat(api): add audio-mini model choices (#3886)
## Summary Adds typed model names for gpt-audio-mini and gpt-audio-mini-2025-12-15. ## Changes - Add both audio-mini model names to shared and Responses model choices - Preserve all existing accepted model names for compatibility Co-authored-by: jbeckwith-oai <269036200+jbeckwith-oai@users.noreply.github.com>
1 parent f0457ab commit a6eeb3f

12 files changed

Lines changed: 76 additions & 30 deletions

File tree

‎.castiron.stats.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
schema_version: 1
2-
generation_id: c4aef8b5-3304-4011-b2ac-ea161cf5b741
3-
openapi_spec_hash: 2278dd84fe5845bed1003fc2844e8c84
4-
openapi_transformed_spec_hash: 1c0a5b0b75063f89a41390ac9babd4bf
5-
config_hash: cfe0039b58229e34ce223bd13e6ed485
6-
codegen_sha: 11f43597ea1831a8b50ed5429405ba72c60bd39c
7-
codegen_hash: 0e0136675d438f15d8e2572b59bb50f6959b5309d003d621ad5160045706e5ac
8-
public_codegen_sha: cc2ad41a090cf50565fd148ad84d6de6899e3f3b
2+
generation_id: 20bfd7ab-509d-4e06-a738-6b7997a79588
3+
openapi_spec_hash: 4a1df412f60140287d03f567949777a2
4+
openapi_transformed_spec_hash: 29daece792ba6ce4f97119152a249111
5+
config_hash: 6b3cc69eb8ac6b5a19e4f865bb7e93fa
6+
codegen_sha: 5444b90faee0b8b66bed5d5c37e89e48b20c0215
7+
codegen_hash: 8470c9a0d556140378d8c09218c48626be69d5e076431d74901c7a460e253d95
8+
public_codegen_sha: cee2edf3b79660c01b00757b62b9419241532657

‎api_reference/openapi.transformed.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94702,7 +94702,6 @@ components:
9470294702
- gpt-5.1
9470394703
- gpt-5.1-2025-11-13
9470494704
- gpt-5.1-codex
94705-
- gpt-5.1-mini
9470694705
- gpt-5.1-chat-latest
9470794706
- gpt-5
9470894707
- gpt-5-mini
@@ -94733,6 +94732,8 @@ components:
9473394732
- gpt-4o-2024-11-20
9473494733
- gpt-4o-2024-08-06
9473594734
- gpt-4o-2024-05-13
94735+
- gpt-audio-mini
94736+
- gpt-audio-mini-2025-12-15
9473694737
- gpt-4o-audio-preview
9473794738
- gpt-4o-audio-preview-2024-10-01
9473894739
- gpt-4o-audio-preview-2024-12-17
@@ -94766,6 +94767,7 @@ components:
9476694767
- gpt-3.5-turbo-1106
9476794768
- gpt-3.5-turbo-0125
9476894769
- gpt-3.5-turbo-16k-0613
94770+
- gpt-5.1-mini
9476994771
x-stainless-nominal: false
9477094772
LiveBuiltInVoice:
9477194773
type: string

‎src/openai/resources/beta/responses/responses.py‎

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def create(
139139
"gpt-5.1",
140140
"gpt-5.1-2025-11-13",
141141
"gpt-5.1-codex",
142-
"gpt-5.1-mini",
143142
"gpt-5.1-chat-latest",
144143
"gpt-5",
145144
"gpt-5-mini",
@@ -170,6 +169,8 @@ def create(
170169
"gpt-4o-2024-11-20",
171170
"gpt-4o-2024-08-06",
172171
"gpt-4o-2024-05-13",
172+
"gpt-audio-mini",
173+
"gpt-audio-mini-2025-12-15",
173174
"gpt-4o-audio-preview",
174175
"gpt-4o-audio-preview-2024-10-01",
175176
"gpt-4o-audio-preview-2024-12-17",
@@ -203,6 +204,7 @@ def create(
203204
"gpt-3.5-turbo-1106",
204205
"gpt-3.5-turbo-0125",
205206
"gpt-3.5-turbo-16k-0613",
207+
"gpt-5.1-mini",
206208
"o1-pro",
207209
"o1-pro-2025-03-19",
208210
"o3-pro",
@@ -541,7 +543,6 @@ def create(
541543
"gpt-5.1",
542544
"gpt-5.1-2025-11-13",
543545
"gpt-5.1-codex",
544-
"gpt-5.1-mini",
545546
"gpt-5.1-chat-latest",
546547
"gpt-5",
547548
"gpt-5-mini",
@@ -572,6 +573,8 @@ def create(
572573
"gpt-4o-2024-11-20",
573574
"gpt-4o-2024-08-06",
574575
"gpt-4o-2024-05-13",
576+
"gpt-audio-mini",
577+
"gpt-audio-mini-2025-12-15",
575578
"gpt-4o-audio-preview",
576579
"gpt-4o-audio-preview-2024-10-01",
577580
"gpt-4o-audio-preview-2024-12-17",
@@ -605,6 +608,7 @@ def create(
605608
"gpt-3.5-turbo-1106",
606609
"gpt-3.5-turbo-0125",
607610
"gpt-3.5-turbo-16k-0613",
611+
"gpt-5.1-mini",
608612
"o1-pro",
609613
"o1-pro-2025-03-19",
610614
"o3-pro",
@@ -942,7 +946,6 @@ def create(
942946
"gpt-5.1",
943947
"gpt-5.1-2025-11-13",
944948
"gpt-5.1-codex",
945-
"gpt-5.1-mini",
946949
"gpt-5.1-chat-latest",
947950
"gpt-5",
948951
"gpt-5-mini",
@@ -973,6 +976,8 @@ def create(
973976
"gpt-4o-2024-11-20",
974977
"gpt-4o-2024-08-06",
975978
"gpt-4o-2024-05-13",
979+
"gpt-audio-mini",
980+
"gpt-audio-mini-2025-12-15",
976981
"gpt-4o-audio-preview",
977982
"gpt-4o-audio-preview-2024-10-01",
978983
"gpt-4o-audio-preview-2024-12-17",
@@ -1006,6 +1011,7 @@ def create(
10061011
"gpt-3.5-turbo-1106",
10071012
"gpt-3.5-turbo-0125",
10081013
"gpt-3.5-turbo-16k-0613",
1014+
"gpt-5.1-mini",
10091015
"o1-pro",
10101016
"o1-pro-2025-03-19",
10111017
"o3-pro",
@@ -1341,7 +1347,6 @@ def create(
13411347
"gpt-5.1",
13421348
"gpt-5.1-2025-11-13",
13431349
"gpt-5.1-codex",
1344-
"gpt-5.1-mini",
13451350
"gpt-5.1-chat-latest",
13461351
"gpt-5",
13471352
"gpt-5-mini",
@@ -1372,6 +1377,8 @@ def create(
13721377
"gpt-4o-2024-11-20",
13731378
"gpt-4o-2024-08-06",
13741379
"gpt-4o-2024-05-13",
1380+
"gpt-audio-mini",
1381+
"gpt-audio-mini-2025-12-15",
13751382
"gpt-4o-audio-preview",
13761383
"gpt-4o-audio-preview-2024-10-01",
13771384
"gpt-4o-audio-preview-2024-12-17",
@@ -1405,6 +1412,7 @@ def create(
14051412
"gpt-3.5-turbo-1106",
14061413
"gpt-3.5-turbo-0125",
14071414
"gpt-3.5-turbo-16k-0613",
1415+
"gpt-5.1-mini",
14081416
"o1-pro",
14091417
"o1-pro-2025-03-19",
14101418
"o3-pro",
@@ -1823,7 +1831,6 @@ def compact(
18231831
"gpt-5.1",
18241832
"gpt-5.1-2025-11-13",
18251833
"gpt-5.1-codex",
1826-
"gpt-5.1-mini",
18271834
"gpt-5.1-chat-latest",
18281835
"gpt-5",
18291836
"gpt-5-mini",
@@ -1854,6 +1861,8 @@ def compact(
18541861
"gpt-4o-2024-11-20",
18551862
"gpt-4o-2024-08-06",
18561863
"gpt-4o-2024-05-13",
1864+
"gpt-audio-mini",
1865+
"gpt-audio-mini-2025-12-15",
18571866
"gpt-4o-audio-preview",
18581867
"gpt-4o-audio-preview-2024-10-01",
18591868
"gpt-4o-audio-preview-2024-12-17",
@@ -1887,6 +1896,7 @@ def compact(
18871896
"gpt-3.5-turbo-1106",
18881897
"gpt-3.5-turbo-0125",
18891898
"gpt-3.5-turbo-16k-0613",
1899+
"gpt-5.1-mini",
18901900
"o1-pro",
18911901
"o1-pro-2025-03-19",
18921902
"o3-pro",
@@ -2112,7 +2122,6 @@ async def create(
21122122
"gpt-5.1",
21132123
"gpt-5.1-2025-11-13",
21142124
"gpt-5.1-codex",
2115-
"gpt-5.1-mini",
21162125
"gpt-5.1-chat-latest",
21172126
"gpt-5",
21182127
"gpt-5-mini",
@@ -2143,6 +2152,8 @@ async def create(
21432152
"gpt-4o-2024-11-20",
21442153
"gpt-4o-2024-08-06",
21452154
"gpt-4o-2024-05-13",
2155+
"gpt-audio-mini",
2156+
"gpt-audio-mini-2025-12-15",
21462157
"gpt-4o-audio-preview",
21472158
"gpt-4o-audio-preview-2024-10-01",
21482159
"gpt-4o-audio-preview-2024-12-17",
@@ -2176,6 +2187,7 @@ async def create(
21762187
"gpt-3.5-turbo-1106",
21772188
"gpt-3.5-turbo-0125",
21782189
"gpt-3.5-turbo-16k-0613",
2190+
"gpt-5.1-mini",
21792191
"o1-pro",
21802192
"o1-pro-2025-03-19",
21812193
"o3-pro",
@@ -2514,7 +2526,6 @@ async def create(
25142526
"gpt-5.1",
25152527
"gpt-5.1-2025-11-13",
25162528
"gpt-5.1-codex",
2517-
"gpt-5.1-mini",
25182529
"gpt-5.1-chat-latest",
25192530
"gpt-5",
25202531
"gpt-5-mini",
@@ -2545,6 +2556,8 @@ async def create(
25452556
"gpt-4o-2024-11-20",
25462557
"gpt-4o-2024-08-06",
25472558
"gpt-4o-2024-05-13",
2559+
"gpt-audio-mini",
2560+
"gpt-audio-mini-2025-12-15",
25482561
"gpt-4o-audio-preview",
25492562
"gpt-4o-audio-preview-2024-10-01",
25502563
"gpt-4o-audio-preview-2024-12-17",
@@ -2578,6 +2591,7 @@ async def create(
25782591
"gpt-3.5-turbo-1106",
25792592
"gpt-3.5-turbo-0125",
25802593
"gpt-3.5-turbo-16k-0613",
2594+
"gpt-5.1-mini",
25812595
"o1-pro",
25822596
"o1-pro-2025-03-19",
25832597
"o3-pro",
@@ -2915,7 +2929,6 @@ async def create(
29152929
"gpt-5.1",
29162930
"gpt-5.1-2025-11-13",
29172931
"gpt-5.1-codex",
2918-
"gpt-5.1-mini",
29192932
"gpt-5.1-chat-latest",
29202933
"gpt-5",
29212934
"gpt-5-mini",
@@ -2946,6 +2959,8 @@ async def create(
29462959
"gpt-4o-2024-11-20",
29472960
"gpt-4o-2024-08-06",
29482961
"gpt-4o-2024-05-13",
2962+
"gpt-audio-mini",
2963+
"gpt-audio-mini-2025-12-15",
29492964
"gpt-4o-audio-preview",
29502965
"gpt-4o-audio-preview-2024-10-01",
29512966
"gpt-4o-audio-preview-2024-12-17",
@@ -2979,6 +2994,7 @@ async def create(
29792994
"gpt-3.5-turbo-1106",
29802995
"gpt-3.5-turbo-0125",
29812996
"gpt-3.5-turbo-16k-0613",
2997+
"gpt-5.1-mini",
29822998
"o1-pro",
29832999
"o1-pro-2025-03-19",
29843000
"o3-pro",
@@ -3314,7 +3330,6 @@ async def create(
33143330
"gpt-5.1",
33153331
"gpt-5.1-2025-11-13",
33163332
"gpt-5.1-codex",
3317-
"gpt-5.1-mini",
33183333
"gpt-5.1-chat-latest",
33193334
"gpt-5",
33203335
"gpt-5-mini",
@@ -3345,6 +3360,8 @@ async def create(
33453360
"gpt-4o-2024-11-20",
33463361
"gpt-4o-2024-08-06",
33473362
"gpt-4o-2024-05-13",
3363+
"gpt-audio-mini",
3364+
"gpt-audio-mini-2025-12-15",
33483365
"gpt-4o-audio-preview",
33493366
"gpt-4o-audio-preview-2024-10-01",
33503367
"gpt-4o-audio-preview-2024-12-17",
@@ -3378,6 +3395,7 @@ async def create(
33783395
"gpt-3.5-turbo-1106",
33793396
"gpt-3.5-turbo-0125",
33803397
"gpt-3.5-turbo-16k-0613",
3398+
"gpt-5.1-mini",
33813399
"o1-pro",
33823400
"o1-pro-2025-03-19",
33833401
"o3-pro",
@@ -3796,7 +3814,6 @@ async def compact(
37963814
"gpt-5.1",
37973815
"gpt-5.1-2025-11-13",
37983816
"gpt-5.1-codex",
3799-
"gpt-5.1-mini",
38003817
"gpt-5.1-chat-latest",
38013818
"gpt-5",
38023819
"gpt-5-mini",
@@ -3827,6 +3844,8 @@ async def compact(
38273844
"gpt-4o-2024-11-20",
38283845
"gpt-4o-2024-08-06",
38293846
"gpt-4o-2024-05-13",
3847+
"gpt-audio-mini",
3848+
"gpt-audio-mini-2025-12-15",
38303849
"gpt-4o-audio-preview",
38313850
"gpt-4o-audio-preview-2024-10-01",
38323851
"gpt-4o-audio-preview-2024-12-17",
@@ -3860,6 +3879,7 @@ async def compact(
38603879
"gpt-3.5-turbo-1106",
38613880
"gpt-3.5-turbo-0125",
38623881
"gpt-3.5-turbo-16k-0613",
3882+
"gpt-5.1-mini",
38633883
"o1-pro",
38643884
"o1-pro-2025-03-19",
38653885
"o3-pro",
@@ -5165,7 +5185,6 @@ def create(
51655185
"gpt-5.1",
51665186
"gpt-5.1-2025-11-13",
51675187
"gpt-5.1-codex",
5168-
"gpt-5.1-mini",
51695188
"gpt-5.1-chat-latest",
51705189
"gpt-5",
51715190
"gpt-5-mini",
@@ -5196,6 +5215,8 @@ def create(
51965215
"gpt-4o-2024-11-20",
51975216
"gpt-4o-2024-08-06",
51985217
"gpt-4o-2024-05-13",
5218+
"gpt-audio-mini",
5219+
"gpt-audio-mini-2025-12-15",
51995220
"gpt-4o-audio-preview",
52005221
"gpt-4o-audio-preview-2024-10-01",
52015222
"gpt-4o-audio-preview-2024-12-17",
@@ -5229,6 +5250,7 @@ def create(
52295250
"gpt-3.5-turbo-1106",
52305251
"gpt-3.5-turbo-0125",
52315252
"gpt-3.5-turbo-16k-0613",
5253+
"gpt-5.1-mini",
52325254
"o1-pro",
52335255
"o1-pro-2025-03-19",
52345256
"o3-pro",
@@ -5416,7 +5438,6 @@ async def create(
54165438
"gpt-5.1",
54175439
"gpt-5.1-2025-11-13",
54185440
"gpt-5.1-codex",
5419-
"gpt-5.1-mini",
54205441
"gpt-5.1-chat-latest",
54215442
"gpt-5",
54225443
"gpt-5-mini",
@@ -5447,6 +5468,8 @@ async def create(
54475468
"gpt-4o-2024-11-20",
54485469
"gpt-4o-2024-08-06",
54495470
"gpt-4o-2024-05-13",
5471+
"gpt-audio-mini",
5472+
"gpt-audio-mini-2025-12-15",
54505473
"gpt-4o-audio-preview",
54515474
"gpt-4o-audio-preview-2024-10-01",
54525475
"gpt-4o-audio-preview-2024-12-17",
@@ -5480,6 +5503,7 @@ async def create(
54805503
"gpt-3.5-turbo-1106",
54815504
"gpt-3.5-turbo-0125",
54825505
"gpt-3.5-turbo-16k-0613",
5506+
"gpt-5.1-mini",
54835507
"o1-pro",
54845508
"o1-pro-2025-03-19",
54855509
"o3-pro",

‎src/openai/resources/responses/responses.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,6 @@ def compact(
17631763
"gpt-5.1",
17641764
"gpt-5.1-2025-11-13",
17651765
"gpt-5.1-codex",
1766-
"gpt-5.1-mini",
17671766
"gpt-5.1-chat-latest",
17681767
"gpt-5",
17691768
"gpt-5-mini",
@@ -1794,6 +1793,8 @@ def compact(
17941793
"gpt-4o-2024-11-20",
17951794
"gpt-4o-2024-08-06",
17961795
"gpt-4o-2024-05-13",
1796+
"gpt-audio-mini",
1797+
"gpt-audio-mini-2025-12-15",
17971798
"gpt-4o-audio-preview",
17981799
"gpt-4o-audio-preview-2024-10-01",
17991800
"gpt-4o-audio-preview-2024-12-17",
@@ -1827,6 +1828,7 @@ def compact(
18271828
"gpt-3.5-turbo-1106",
18281829
"gpt-3.5-turbo-0125",
18291830
"gpt-3.5-turbo-16k-0613",
1831+
"gpt-5.1-mini",
18301832
"o1-pro",
18311833
"o1-pro-2025-03-19",
18321834
"o3-pro",
@@ -3644,7 +3646,6 @@ async def compact(
36443646
"gpt-5.1",
36453647
"gpt-5.1-2025-11-13",
36463648
"gpt-5.1-codex",
3647-
"gpt-5.1-mini",
36483649
"gpt-5.1-chat-latest",
36493650
"gpt-5",
36503651
"gpt-5-mini",
@@ -3675,6 +3676,8 @@ async def compact(
36753676
"gpt-4o-2024-11-20",
36763677
"gpt-4o-2024-08-06",
36773678
"gpt-4o-2024-05-13",
3679+
"gpt-audio-mini",
3680+
"gpt-audio-mini-2025-12-15",
36783681
"gpt-4o-audio-preview",
36793682
"gpt-4o-audio-preview-2024-10-01",
36803683
"gpt-4o-audio-preview-2024-12-17",
@@ -3708,6 +3711,7 @@ async def compact(
37083711
"gpt-3.5-turbo-1106",
37093712
"gpt-3.5-turbo-0125",
37103713
"gpt-3.5-turbo-16k-0613",
3714+
"gpt-5.1-mini",
37113715
"o1-pro",
37123716
"o1-pro-2025-03-19",
37133717
"o3-pro",

0 commit comments

Comments
 (0)