Skip to content

Commit 2c67256

Browse files
feat(api): 5.4 nano and mini model slugs
1 parent bc96310 commit 2c67256

5 files changed

Lines changed: 22 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 152
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5a660d5b485aae5061d55301f7c8522654a533c7d7d9596c4da54f0e481d8880.yml
3-
openapi_spec_hash: 50297cf7c625ec3c4bb0bc0f5a9d318a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-55ef7034334e938c30656a404ce5e21466103be87542a796425346299f450404.yml
3+
openapi_spec_hash: 4a5bfd2ee4ad47f5b7cf6f1ad08d5d7f
44
config_hash: 96fbf82cf74a44ccd513f5acf0956ffd

src/openai/resources/responses/responses.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,10 @@ def compact(
15681568
model: Union[
15691569
Literal[
15701570
"gpt-5.4",
1571+
"gpt-5.4-mini",
1572+
"gpt-5.4-nano",
1573+
"gpt-5.4-mini-2026-03-17",
1574+
"gpt-5.4-nano-2026-03-17",
15711575
"gpt-5.3-chat-latest",
15721576
"gpt-5.2",
15731577
"gpt-5.2-2025-12-11",
@@ -3235,6 +3239,10 @@ async def compact(
32353239
model: Union[
32363240
Literal[
32373241
"gpt-5.4",
3242+
"gpt-5.4-mini",
3243+
"gpt-5.4-nano",
3244+
"gpt-5.4-mini-2026-03-17",
3245+
"gpt-5.4-nano-2026-03-17",
32383246
"gpt-5.3-chat-latest",
32393247
"gpt-5.2",
32403248
"gpt-5.2-2025-12-11",

src/openai/types/responses/response_compact_params.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class ResponseCompactParams(TypedDict, total=False):
1515
Union[
1616
Literal[
1717
"gpt-5.4",
18+
"gpt-5.4-mini",
19+
"gpt-5.4-nano",
20+
"gpt-5.4-mini-2026-03-17",
21+
"gpt-5.4-nano-2026-03-17",
1822
"gpt-5.3-chat-latest",
1923
"gpt-5.2",
2024
"gpt-5.2-2025-12-11",

src/openai/types/shared/chat_model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
ChatModel: TypeAlias = Literal[
88
"gpt-5.4",
9+
"gpt-5.4-mini",
10+
"gpt-5.4-nano",
11+
"gpt-5.4-mini-2026-03-17",
12+
"gpt-5.4-nano-2026-03-17",
913
"gpt-5.3-chat-latest",
1014
"gpt-5.2",
1115
"gpt-5.2-2025-12-11",

src/openai/types/shared_params/chat_model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
ChatModel: TypeAlias = Literal[
1010
"gpt-5.4",
11+
"gpt-5.4-mini",
12+
"gpt-5.4-nano",
13+
"gpt-5.4-mini-2026-03-17",
14+
"gpt-5.4-nano-2026-03-17",
1115
"gpt-5.3-chat-latest",
1216
"gpt-5.2",
1317
"gpt-5.2-2025-12-11",

0 commit comments

Comments
 (0)