Skip to content

Commit 752a293

Browse files
feat(api): gpt 5.2
1 parent ef00216 commit 752a293

24 files changed

+85
-50
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 137
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-88d85ff87ad8983262af2b729762a6e05fd509468bb691529bc2f81e4ce27c69.yml
3-
openapi_spec_hash: 46a55acbccd0147534017b92c1f4dd99
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-41f98da99f44ebe6204fce5c1dc9940f85f3472779e797b674c4fdc20306c77d.yml
3+
openapi_spec_hash: c61259027f421f501bdc6b23cf9e430e
44
config_hash: 141b101c9f13b90e21af74e1686f1f41

src/openai/resources/beta/assistants.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def create(
108108
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
109109
support `none`.
110110
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
111-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
111+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
112112
113113
response_format: Specifies the format that the model must output. Compatible with
114114
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -323,7 +323,7 @@ def update(
323323
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
324324
support `none`.
325325
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
326-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
326+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
327327
328328
response_format: Specifies the format that the model must output. Compatible with
329329
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -577,7 +577,7 @@ async def create(
577577
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
578578
support `none`.
579579
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
580-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
580+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
581581
582582
response_format: Specifies the format that the model must output. Compatible with
583583
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -792,7 +792,7 @@ async def update(
792792
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
793793
support `none`.
794794
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
795-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
795+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
796796
797797
response_format: Specifies the format that the model must output. Compatible with
798798
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),

src/openai/resources/beta/threads/runs/runs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def create(
179179
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
180180
support `none`.
181181
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
182-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
182+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
183183
184184
response_format: Specifies the format that the model must output. Compatible with
185185
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -341,7 +341,7 @@ def create(
341341
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
342342
support `none`.
343343
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
344-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
344+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
345345
346346
response_format: Specifies the format that the model must output. Compatible with
347347
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -499,7 +499,7 @@ def create(
499499
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
500500
support `none`.
501501
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
502-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
502+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
503503
504504
response_format: Specifies the format that the model must output. Compatible with
505505
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -1633,7 +1633,7 @@ async def create(
16331633
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
16341634
support `none`.
16351635
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1636-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1636+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
16371637
16381638
response_format: Specifies the format that the model must output. Compatible with
16391639
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -1795,7 +1795,7 @@ async def create(
17951795
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
17961796
support `none`.
17971797
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1798-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1798+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
17991799
18001800
response_format: Specifies the format that the model must output. Compatible with
18011801
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
@@ -1953,7 +1953,7 @@ async def create(
19531953
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
19541954
support `none`.
19551955
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1956-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1956+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
19571957
19581958
response_format: Specifies the format that the model must output. Compatible with
19591959
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),

src/openai/resources/chat/completions/completions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def create(
421421
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
422422
support `none`.
423423
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
424-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
424+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
425425
426426
response_format: An object specifying the format that the model must output.
427427
@@ -732,7 +732,7 @@ def create(
732732
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
733733
support `none`.
734734
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
735-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
735+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
736736
737737
response_format: An object specifying the format that the model must output.
738738
@@ -1034,7 +1034,7 @@ def create(
10341034
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
10351035
support `none`.
10361036
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1037-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1037+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
10381038
10391039
response_format: An object specifying the format that the model must output.
10401040
@@ -1907,7 +1907,7 @@ async def create(
19071907
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
19081908
support `none`.
19091909
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1910-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1910+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
19111911
19121912
response_format: An object specifying the format that the model must output.
19131913
@@ -2218,7 +2218,7 @@ async def create(
22182218
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
22192219
support `none`.
22202220
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
2221-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
2221+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
22222222
22232223
response_format: An object specifying the format that the model must output.
22242224
@@ -2520,7 +2520,7 @@ async def create(
25202520
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
25212521
support `none`.
25222522
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
2523-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
2523+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
25242524
25252525
response_format: An object specifying the format that the model must output.
25262526

src/openai/resources/responses/responses.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,11 @@ def compact(
15281528
*,
15291529
model: Union[
15301530
Literal[
1531+
"gpt-5.2",
1532+
"gpt-5.2-2025-12-11",
1533+
"gpt-5.2-chat-latest",
1534+
"gpt-5.2-pro",
1535+
"gpt-5.2-pro-2025-12-11",
15311536
"gpt-5.1",
15321537
"gpt-5.1-2025-11-13",
15331538
"gpt-5.1-codex",
@@ -3141,6 +3146,11 @@ async def compact(
31413146
*,
31423147
model: Union[
31433148
Literal[
3149+
"gpt-5.2",
3150+
"gpt-5.2-2025-12-11",
3151+
"gpt-5.2-chat-latest",
3152+
"gpt-5.2-pro",
3153+
"gpt-5.2-pro-2025-12-11",
31443154
"gpt-5.1",
31453155
"gpt-5.1-2025-11-13",
31463156
"gpt-5.1-codex",

src/openai/types/beta/assistant_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class AssistantCreateParams(TypedDict, total=False):
7272
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
7373
support `none`.
7474
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
75-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
75+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
7676
"""
7777

7878
response_format: Optional[AssistantResponseFormatOptionParam]

src/openai/types/beta/assistant_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class AssistantUpdateParams(TypedDict, total=False):
107107
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
108108
support `none`.
109109
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
110-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
110+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
111111
"""
112112

113113
response_format: Optional[AssistantResponseFormatOptionParam]

src/openai/types/beta/threads/run_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class RunCreateParamsBase(TypedDict, total=False):
121121
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
122122
support `none`.
123123
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
124-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
124+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
125125
"""
126126

127127
response_format: Optional[AssistantResponseFormatOptionParam]

src/openai/types/chat/completion_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class CompletionCreateParamsBase(TypedDict, total=False):
207207
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
208208
support `none`.
209209
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
210-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
210+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
211211
"""
212212

213213
response_format: ResponseFormat

src/openai/types/evals/create_eval_completions_run_data_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class SamplingParams(BaseModel):
196196
- All models before `gpt-5.1` default to `medium` reasoning effort, and do not
197197
support `none`.
198198
- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
199-
- `xhigh` is currently only supported for `gpt-5.1-codex-max`.
199+
- `xhigh` is supported for all models after `gpt-5.1-codex-max`.
200200
"""
201201

202202
response_format: Optional[SamplingParamsResponseFormat] = None

0 commit comments

Comments
 (0)