Skip to content

Commit 455ce1b

Browse files
feat(api): add GPT-6 Sol and Luna model identifiers (#3935)
## Summary Adds gpt-6-sol and gpt-6-luna to the known Chat Completions and Responses model identifiers. ## Changes - Add the two identifiers to Python model type hints. - Continue accepting existing model identifiers and arbitrary model strings. Co-authored-by: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com>
1 parent 8c72a70 commit 455ce1b

12 files changed

Lines changed: 52 additions & 6 deletions

File tree

‎.castiron.stats.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
schema_version: 1
2-
generation_id: c4a244c7-627d-4a8f-af05-30a24293e753
3-
openapi_spec_hash: 3a0031a277862428a7586125d5cec8c8
4-
openapi_transformed_spec_hash: 951060c87157ffcd2b99d6ec617d2f6b
2+
generation_id: 55efa5f7-488d-441d-9d8a-122049a1529a
3+
openapi_spec_hash: dd4d5f4645d390dcaa730d96ff8256b9
4+
openapi_transformed_spec_hash: 46069ae7031d4c47bc28d2e565e74465
55
config_hash: 18f602826c88bad76c6fdf08ab67247a
6-
codegen_sha: db6da626ba89030cc5028be84182cfe435e58153
7-
codegen_hash: 18f31bca2b47a4635831babef446409eb6eccf6db702432e4a9cd0c0226a8b6b
8-
public_codegen_sha: f85015561af80beec73f1c34169d9e502399d3a8
6+
codegen_sha: c3ce80b15a62c6073590d3d3dae24c3add7c078d
7+
codegen_hash: 3558f0e3ddec29671f90a9da98e765a85fce601f27cc11fea5a4357490a845fb
8+
public_codegen_sha: 37caadca9e7294870cac83ccc132d1df69d06b31

‎api_reference/openapi.transformed.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96374,6 +96374,8 @@ components:
9637496374
type: string
9637596375
enum:
9637696376
- gpt-6-astra
96377+
- gpt-6-sol
96378+
- gpt-6-luna
9637796379
- gpt-5.6-sol
9637896380
- gpt-5.6-terra
9637996381
- gpt-5.6-luna

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def create(
124124
model: Union[
125125
Literal[
126126
"gpt-6-astra",
127+
"gpt-6-sol",
128+
"gpt-6-luna",
127129
"gpt-5.6-sol",
128130
"gpt-5.6-terra",
129131
"gpt-5.6-luna",
@@ -528,6 +530,8 @@ def create(
528530
model: Union[
529531
Literal[
530532
"gpt-6-astra",
533+
"gpt-6-sol",
534+
"gpt-6-luna",
531535
"gpt-5.6-sol",
532536
"gpt-5.6-terra",
533537
"gpt-5.6-luna",
@@ -931,6 +935,8 @@ def create(
931935
model: Union[
932936
Literal[
933937
"gpt-6-astra",
938+
"gpt-6-sol",
939+
"gpt-6-luna",
934940
"gpt-5.6-sol",
935941
"gpt-5.6-terra",
936942
"gpt-5.6-luna",
@@ -1332,6 +1338,8 @@ def create(
13321338
model: Union[
13331339
Literal[
13341340
"gpt-6-astra",
1341+
"gpt-6-sol",
1342+
"gpt-6-luna",
13351343
"gpt-5.6-sol",
13361344
"gpt-5.6-terra",
13371345
"gpt-5.6-luna",
@@ -1816,6 +1824,8 @@ def compact(
18161824
model: Union[
18171825
Literal[
18181826
"gpt-6-astra",
1827+
"gpt-6-sol",
1828+
"gpt-6-luna",
18191829
"gpt-5.6-sol",
18201830
"gpt-5.6-terra",
18211831
"gpt-5.6-luna",
@@ -2111,6 +2121,8 @@ async def create(
21112121
model: Union[
21122122
Literal[
21132123
"gpt-6-astra",
2124+
"gpt-6-sol",
2125+
"gpt-6-luna",
21142126
"gpt-5.6-sol",
21152127
"gpt-5.6-terra",
21162128
"gpt-5.6-luna",
@@ -2515,6 +2527,8 @@ async def create(
25152527
model: Union[
25162528
Literal[
25172529
"gpt-6-astra",
2530+
"gpt-6-sol",
2531+
"gpt-6-luna",
25182532
"gpt-5.6-sol",
25192533
"gpt-5.6-terra",
25202534
"gpt-5.6-luna",
@@ -2918,6 +2932,8 @@ async def create(
29182932
model: Union[
29192933
Literal[
29202934
"gpt-6-astra",
2935+
"gpt-6-sol",
2936+
"gpt-6-luna",
29212937
"gpt-5.6-sol",
29222938
"gpt-5.6-terra",
29232939
"gpt-5.6-luna",
@@ -3319,6 +3335,8 @@ async def create(
33193335
model: Union[
33203336
Literal[
33213337
"gpt-6-astra",
3338+
"gpt-6-sol",
3339+
"gpt-6-luna",
33223340
"gpt-5.6-sol",
33233341
"gpt-5.6-terra",
33243342
"gpt-5.6-luna",
@@ -3803,6 +3821,8 @@ async def compact(
38033821
model: Union[
38043822
Literal[
38053823
"gpt-6-astra",
3824+
"gpt-6-sol",
3825+
"gpt-6-luna",
38063826
"gpt-5.6-sol",
38073827
"gpt-5.6-terra",
38083828
"gpt-5.6-luna",
@@ -5178,6 +5198,8 @@ def create(
51785198
model: Union[
51795199
Literal[
51805200
"gpt-6-astra",
5201+
"gpt-6-sol",
5202+
"gpt-6-luna",
51815203
"gpt-5.6-sol",
51825204
"gpt-5.6-terra",
51835205
"gpt-5.6-luna",
@@ -5429,6 +5451,8 @@ async def create(
54295451
model: Union[
54305452
Literal[
54315453
"gpt-6-astra",
5454+
"gpt-6-sol",
5455+
"gpt-6-luna",
54325456
"gpt-5.6-sol",
54335457
"gpt-5.6-terra",
54345458
"gpt-5.6-luna",

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,8 @@ def compact(
17481748
model: Union[
17491749
Literal[
17501750
"gpt-6-astra",
1751+
"gpt-6-sol",
1752+
"gpt-6-luna",
17511753
"gpt-5.6-sol",
17521754
"gpt-5.6-terra",
17531755
"gpt-5.6-luna",
@@ -3635,6 +3637,8 @@ async def compact(
36353637
model: Union[
36363638
Literal[
36373639
"gpt-6-astra",
3640+
"gpt-6-sol",
3641+
"gpt-6-luna",
36383642
"gpt-5.6-sol",
36393643
"gpt-5.6-terra",
36403644
"gpt-5.6-luna",

‎src/openai/types/beta/beta_response.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ class BetaResponse(BaseModel):
341341
model: Union[
342342
Literal[
343343
"gpt-6-astra",
344+
"gpt-6-sol",
345+
"gpt-6-luna",
344346
"gpt-5.6-sol",
345347
"gpt-5.6-terra",
346348
"gpt-5.6-luna",

‎src/openai/types/beta/beta_responses_client_event.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ class ResponseCreate(BaseModel):
329329
model: Union[
330330
Literal[
331331
"gpt-6-astra",
332+
"gpt-6-sol",
333+
"gpt-6-luna",
332334
"gpt-5.6-sol",
333335
"gpt-5.6-terra",
334336
"gpt-5.6-luna",

‎src/openai/types/beta/beta_responses_client_event_param.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ class ResponseCreate(TypedDict, total=False):
329329
model: Union[
330330
Literal[
331331
"gpt-6-astra",
332+
"gpt-6-sol",
333+
"gpt-6-luna",
332334
"gpt-5.6-sol",
333335
"gpt-5.6-terra",
334336
"gpt-5.6-luna",

‎src/openai/types/beta/response_compact_params.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class ResponseCompactParams(TypedDict, total=False):
1616
Union[
1717
Literal[
1818
"gpt-6-astra",
19+
"gpt-6-sol",
20+
"gpt-6-luna",
1921
"gpt-5.6-sol",
2022
"gpt-5.6-terra",
2123
"gpt-5.6-luna",

‎src/openai/types/beta/response_create_params.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ class ResponseCreateParamsBase(TypedDict, total=False):
129129
model: Union[
130130
Literal[
131131
"gpt-6-astra",
132+
"gpt-6-sol",
133+
"gpt-6-luna",
132134
"gpt-5.6-sol",
133135
"gpt-5.6-terra",
134136
"gpt-5.6-luna",

‎src/openai/types/responses/response_compact_params.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class ResponseCompactParams(TypedDict, total=False):
1515
Union[
1616
Literal[
1717
"gpt-6-astra",
18+
"gpt-6-sol",
19+
"gpt-6-luna",
1820
"gpt-5.6-sol",
1921
"gpt-5.6-terra",
2022
"gpt-5.6-luna",

0 commit comments

Comments
 (0)