Skip to content

Commit 160b2c0

Browse files
feat(api): add GPT-6.1 Sol model identifier (openai#3986)
## Summary Adds gpt-6.1-sol to the known model identifiers for Chat Completions and Responses. ## Changes - Add gpt-6.1-sol to the shared ChatModel type. Co-authored-by: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com>
1 parent 68b173a commit 160b2c0

12 files changed

Lines changed: 29 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: 333859af-62cd-49b7-9d68-fdc65b83bcef
3-
openapi_spec_hash: 190a5881eaed8f8bfed8eac62c68302a
4-
openapi_transformed_spec_hash: 1e89b4f0b784ea36e6aa81a6622b35ae
2+
generation_id: 0aa9ce13-d80a-4a74-a5a3-a64c06d396bd
3+
openapi_spec_hash: ef23be781aae82cc4aaf121dc1e23c90
4+
openapi_transformed_spec_hash: 6c58c6858bf78f94b91d1095df3b4523
55
config_hash: 38c35bf82be025557d8a7dc727060f2f
6-
codegen_sha: d59ac118482823565bbdca847051357ed3e4f6e1
7-
codegen_hash: 210a69f518d2f337946ef9339996d6d741400fee9d80e2e009fec34efeeff626
8-
public_codegen_sha: d91884e54ca755e5851b5f8cd7fa91b1c39121ab
6+
codegen_sha: 696f896d9c4820f2118a6b7bd3cba58172677ec1
7+
codegen_hash: f34dc0b8de3f49538501f94020eae54bbeaf5d813f0af4d4c4d03236d83d57e2
8+
public_codegen_sha: 20af1d8d59806c56dd7e866ae4cc018d92768a9e

‎api_reference/openapi.transformed.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101337,6 +101337,7 @@ components:
101337101337
type: string
101338101338
enum:
101339101339
- gpt-6-astra
101340+
- gpt-6.1-sol
101340101341
- gpt-6-sol
101341101342
- gpt-6-luna
101342101343
- gpt-5.6-sol

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def create(
125125
model: Union[
126126
Literal[
127127
"gpt-6-astra",
128+
"gpt-6.1-sol",
128129
"gpt-6-sol",
129130
"gpt-6-luna",
130131
"gpt-5.6-sol",
@@ -535,6 +536,7 @@ def create(
535536
model: Union[
536537
Literal[
537538
"gpt-6-astra",
539+
"gpt-6.1-sol",
538540
"gpt-6-sol",
539541
"gpt-6-luna",
540542
"gpt-5.6-sol",
@@ -944,6 +946,7 @@ def create(
944946
model: Union[
945947
Literal[
946948
"gpt-6-astra",
949+
"gpt-6.1-sol",
947950
"gpt-6-sol",
948951
"gpt-6-luna",
949952
"gpt-5.6-sol",
@@ -1351,6 +1354,7 @@ def create(
13511354
model: Union[
13521355
Literal[
13531356
"gpt-6-astra",
1357+
"gpt-6.1-sol",
13541358
"gpt-6-sol",
13551359
"gpt-6-luna",
13561360
"gpt-5.6-sol",
@@ -1839,6 +1843,7 @@ def compact(
18391843
model: Union[
18401844
Literal[
18411845
"gpt-6-astra",
1846+
"gpt-6.1-sol",
18421847
"gpt-6-sol",
18431848
"gpt-6-luna",
18441849
"gpt-5.6-sol",
@@ -2138,6 +2143,7 @@ async def create(
21382143
model: Union[
21392144
Literal[
21402145
"gpt-6-astra",
2146+
"gpt-6.1-sol",
21412147
"gpt-6-sol",
21422148
"gpt-6-luna",
21432149
"gpt-5.6-sol",
@@ -2548,6 +2554,7 @@ async def create(
25482554
model: Union[
25492555
Literal[
25502556
"gpt-6-astra",
2557+
"gpt-6.1-sol",
25512558
"gpt-6-sol",
25522559
"gpt-6-luna",
25532560
"gpt-5.6-sol",
@@ -2957,6 +2964,7 @@ async def create(
29572964
model: Union[
29582965
Literal[
29592966
"gpt-6-astra",
2967+
"gpt-6.1-sol",
29602968
"gpt-6-sol",
29612969
"gpt-6-luna",
29622970
"gpt-5.6-sol",
@@ -3364,6 +3372,7 @@ async def create(
33643372
model: Union[
33653373
Literal[
33663374
"gpt-6-astra",
3375+
"gpt-6.1-sol",
33673376
"gpt-6-sol",
33683377
"gpt-6-luna",
33693378
"gpt-5.6-sol",
@@ -3852,6 +3861,7 @@ async def compact(
38523861
model: Union[
38533862
Literal[
38543863
"gpt-6-astra",
3864+
"gpt-6.1-sol",
38553865
"gpt-6-sol",
38563866
"gpt-6-luna",
38573867
"gpt-5.6-sol",
@@ -5231,6 +5241,7 @@ def create(
52315241
model: Union[
52325242
Literal[
52335243
"gpt-6-astra",
5244+
"gpt-6.1-sol",
52345245
"gpt-6-sol",
52355246
"gpt-6-luna",
52365247
"gpt-5.6-sol",
@@ -5487,6 +5498,7 @@ async def create(
54875498
model: Union[
54885499
Literal[
54895500
"gpt-6-astra",
5501+
"gpt-6.1-sol",
54905502
"gpt-6-sol",
54915503
"gpt-6-luna",
54925504
"gpt-5.6-sol",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,7 @@ def compact(
17651765
model: Union[
17661766
Literal[
17671767
"gpt-6-astra",
1768+
"gpt-6.1-sol",
17681769
"gpt-6-sol",
17691770
"gpt-6-luna",
17701771
"gpt-5.6-sol",
@@ -3672,6 +3673,7 @@ async def compact(
36723673
model: Union[
36733674
Literal[
36743675
"gpt-6-astra",
3676+
"gpt-6.1-sol",
36753677
"gpt-6-sol",
36763678
"gpt-6-luna",
36773679
"gpt-5.6-sol",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ class BetaResponse(BaseModel):
349349
model: Union[
350350
Literal[
351351
"gpt-6-astra",
352+
"gpt-6.1-sol",
352353
"gpt-6-sol",
353354
"gpt-6-luna",
354355
"gpt-5.6-sol",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ class ResponseCreate(BaseModel):
351351
model: Union[
352352
Literal[
353353
"gpt-6-astra",
354+
"gpt-6.1-sol",
354355
"gpt-6-sol",
355356
"gpt-6-luna",
356357
"gpt-5.6-sol",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ class ResponseCreate(TypedDict, total=False):
351351
model: Union[
352352
Literal[
353353
"gpt-6-astra",
354+
"gpt-6.1-sol",
354355
"gpt-6-sol",
355356
"gpt-6-luna",
356357
"gpt-5.6-sol",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class ResponseCompactParams(TypedDict, total=False):
1616
Union[
1717
Literal[
1818
"gpt-6-astra",
19+
"gpt-6.1-sol",
1920
"gpt-6-sol",
2021
"gpt-6-luna",
2122
"gpt-5.6-sol",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class ResponseCreateParamsBase(TypedDict, total=False):
133133
model: Union[
134134
Literal[
135135
"gpt-6-astra",
136+
"gpt-6.1-sol",
136137
"gpt-6-sol",
137138
"gpt-6-luna",
138139
"gpt-5.6-sol",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ResponseCompactParams(TypedDict, total=False):
1515
Union[
1616
Literal[
1717
"gpt-6-astra",
18+
"gpt-6.1-sol",
1819
"gpt-6-sol",
1920
"gpt-6-luna",
2021
"gpt-5.6-sol",

0 commit comments

Comments
 (0)