Skip to content

Commit 5672ad4

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): add new gpt-4o-mini models (#1561)
1 parent 0de7419 commit 5672ad4

File tree

8 files changed

+45
-1
lines changed

8 files changed

+45
-1
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 64
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-27d8d6da893c1cdd53b491ec05153df22b1e113965f253a1d6eb8d75b628173f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-518ca6c60061d3e8bc0971facf40d752f2aea62e3522cc168ad29a1f29cab3dd.yml

Diff for: src/openai/resources/beta/assistants.py

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def create(
5151
Literal[
5252
"gpt-4o",
5353
"gpt-4o-2024-05-13",
54+
"gpt-4o-mini",
55+
"gpt-4o-mini-2024-07-18",
5456
"gpt-4-turbo",
5557
"gpt-4-turbo-2024-04-09",
5658
"gpt-4-0125-preview",
@@ -440,6 +442,8 @@ async def create(
440442
Literal[
441443
"gpt-4o",
442444
"gpt-4o-2024-05-13",
445+
"gpt-4o-mini",
446+
"gpt-4o-mini-2024-07-18",
443447
"gpt-4-turbo",
444448
"gpt-4-turbo-2024-04-09",
445449
"gpt-4-0125-preview",

Diff for: src/openai/resources/beta/threads/runs/runs.py

+16
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def create(
8787
Literal[
8888
"gpt-4o",
8989
"gpt-4o-2024-05-13",
90+
"gpt-4o-mini",
91+
"gpt-4o-mini-2024-07-18",
9092
"gpt-4-turbo",
9193
"gpt-4-turbo-2024-04-09",
9294
"gpt-4-0125-preview",
@@ -240,6 +242,8 @@ def create(
240242
Literal[
241243
"gpt-4o",
242244
"gpt-4o-2024-05-13",
245+
"gpt-4o-mini",
246+
"gpt-4o-mini-2024-07-18",
243247
"gpt-4-turbo",
244248
"gpt-4-turbo-2024-04-09",
245249
"gpt-4-0125-preview",
@@ -392,6 +396,8 @@ def create(
392396
Literal[
393397
"gpt-4o",
394398
"gpt-4o-2024-05-13",
399+
"gpt-4o-mini",
400+
"gpt-4o-mini-2024-07-18",
395401
"gpt-4-turbo",
396402
"gpt-4-turbo-2024-04-09",
397403
"gpt-4-0125-preview",
@@ -543,6 +549,8 @@ def create(
543549
Literal[
544550
"gpt-4o",
545551
"gpt-4o-2024-05-13",
552+
"gpt-4o-mini",
553+
"gpt-4o-mini-2024-07-18",
546554
"gpt-4-turbo",
547555
"gpt-4-turbo-2024-04-09",
548556
"gpt-4-0125-preview",
@@ -1661,6 +1669,8 @@ async def create(
16611669
Literal[
16621670
"gpt-4o",
16631671
"gpt-4o-2024-05-13",
1672+
"gpt-4o-mini",
1673+
"gpt-4o-mini-2024-07-18",
16641674
"gpt-4-turbo",
16651675
"gpt-4-turbo-2024-04-09",
16661676
"gpt-4-0125-preview",
@@ -1814,6 +1824,8 @@ async def create(
18141824
Literal[
18151825
"gpt-4o",
18161826
"gpt-4o-2024-05-13",
1827+
"gpt-4o-mini",
1828+
"gpt-4o-mini-2024-07-18",
18171829
"gpt-4-turbo",
18181830
"gpt-4-turbo-2024-04-09",
18191831
"gpt-4-0125-preview",
@@ -1966,6 +1978,8 @@ async def create(
19661978
Literal[
19671979
"gpt-4o",
19681980
"gpt-4o-2024-05-13",
1981+
"gpt-4o-mini",
1982+
"gpt-4o-mini-2024-07-18",
19691983
"gpt-4-turbo",
19701984
"gpt-4-turbo-2024-04-09",
19711985
"gpt-4-0125-preview",
@@ -2117,6 +2131,8 @@ async def create(
21172131
Literal[
21182132
"gpt-4o",
21192133
"gpt-4o-2024-05-13",
2134+
"gpt-4o-mini",
2135+
"gpt-4o-mini-2024-07-18",
21202136
"gpt-4-turbo",
21212137
"gpt-4-turbo-2024-04-09",
21222138
"gpt-4-0125-preview",

Diff for: src/openai/resources/beta/threads/threads.py

+16
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ def create_and_run(
269269
Literal[
270270
"gpt-4o",
271271
"gpt-4o-2024-05-13",
272+
"gpt-4o-mini",
273+
"gpt-4o-mini-2024-07-18",
272274
"gpt-4-turbo",
273275
"gpt-4-turbo-2024-04-09",
274276
"gpt-4-0125-preview",
@@ -421,6 +423,8 @@ def create_and_run(
421423
Literal[
422424
"gpt-4o",
423425
"gpt-4o-2024-05-13",
426+
"gpt-4o-mini",
427+
"gpt-4o-mini-2024-07-18",
424428
"gpt-4-turbo",
425429
"gpt-4-turbo-2024-04-09",
426430
"gpt-4-0125-preview",
@@ -572,6 +576,8 @@ def create_and_run(
572576
Literal[
573577
"gpt-4o",
574578
"gpt-4o-2024-05-13",
579+
"gpt-4o-mini",
580+
"gpt-4o-mini-2024-07-18",
575581
"gpt-4-turbo",
576582
"gpt-4-turbo-2024-04-09",
577583
"gpt-4-0125-preview",
@@ -722,6 +728,8 @@ def create_and_run(
722728
Literal[
723729
"gpt-4o",
724730
"gpt-4o-2024-05-13",
731+
"gpt-4o-mini",
732+
"gpt-4o-mini-2024-07-18",
725733
"gpt-4-turbo",
726734
"gpt-4-turbo-2024-04-09",
727735
"gpt-4-0125-preview",
@@ -1285,6 +1293,8 @@ async def create_and_run(
12851293
Literal[
12861294
"gpt-4o",
12871295
"gpt-4o-2024-05-13",
1296+
"gpt-4o-mini",
1297+
"gpt-4o-mini-2024-07-18",
12881298
"gpt-4-turbo",
12891299
"gpt-4-turbo-2024-04-09",
12901300
"gpt-4-0125-preview",
@@ -1437,6 +1447,8 @@ async def create_and_run(
14371447
Literal[
14381448
"gpt-4o",
14391449
"gpt-4o-2024-05-13",
1450+
"gpt-4o-mini",
1451+
"gpt-4o-mini-2024-07-18",
14401452
"gpt-4-turbo",
14411453
"gpt-4-turbo-2024-04-09",
14421454
"gpt-4-0125-preview",
@@ -1588,6 +1600,8 @@ async def create_and_run(
15881600
Literal[
15891601
"gpt-4o",
15901602
"gpt-4o-2024-05-13",
1603+
"gpt-4o-mini",
1604+
"gpt-4o-mini-2024-07-18",
15911605
"gpt-4-turbo",
15921606
"gpt-4-turbo-2024-04-09",
15931607
"gpt-4-0125-preview",
@@ -1738,6 +1752,8 @@ async def create_and_run(
17381752
Literal[
17391753
"gpt-4o",
17401754
"gpt-4o-2024-05-13",
1755+
"gpt-4o-mini",
1756+
"gpt-4o-mini-2024-07-18",
17411757
"gpt-4-turbo",
17421758
"gpt-4-turbo-2024-04-09",
17431759
"gpt-4-0125-preview",

Diff for: src/openai/types/beta/assistant_create_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class AssistantCreateParams(TypedDict, total=False):
2828
Literal[
2929
"gpt-4o",
3030
"gpt-4o-2024-05-13",
31+
"gpt-4o-mini",
32+
"gpt-4o-mini-2024-07-18",
3133
"gpt-4-turbo",
3234
"gpt-4-turbo-2024-04-09",
3335
"gpt-4-0125-preview",

Diff for: src/openai/types/beta/thread_create_and_run_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ class ThreadCreateAndRunParamsBase(TypedDict, total=False):
8282
Literal[
8383
"gpt-4o",
8484
"gpt-4o-2024-05-13",
85+
"gpt-4o-mini",
86+
"gpt-4o-mini-2024-07-18",
8587
"gpt-4-turbo",
8688
"gpt-4-turbo-2024-04-09",
8789
"gpt-4-0125-preview",

Diff for: src/openai/types/beta/threads/run_create_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class RunCreateParamsBase(TypedDict, total=False):
7979
Literal[
8080
"gpt-4o",
8181
"gpt-4o-2024-05-13",
82+
"gpt-4o-mini",
83+
"gpt-4o-mini-2024-07-18",
8284
"gpt-4-turbo",
8385
"gpt-4-turbo-2024-04-09",
8486
"gpt-4-0125-preview",

Diff for: src/openai/types/chat_model.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
ChatModel = Literal[
88
"gpt-4o",
99
"gpt-4o-2024-05-13",
10+
"gpt-4o-mini",
11+
"gpt-4o-mini-2024-07-18",
1012
"gpt-4-turbo",
1113
"gpt-4-turbo-2024-04-09",
1214
"gpt-4-0125-preview",

0 commit comments

Comments
 (0)