@@ -61,6 +61,7 @@ def create(
61
61
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
62
62
metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
63
63
name : Optional [str ] | NotGiven = NOT_GIVEN ,
64
+ reasoning_effort : Optional [Literal ["low" , "medium" , "high" ]] | NotGiven = NOT_GIVEN ,
64
65
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
65
66
temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
66
67
tool_resources : Optional [assistant_create_params .ToolResources ] | NotGiven = NOT_GIVEN ,
@@ -97,6 +98,13 @@ def create(
97
98
98
99
name: The name of the assistant. The maximum length is 256 characters.
99
100
101
+ reasoning_effort: **o1 and o3-mini models only**
102
+
103
+ Constrains effort on reasoning for
104
+ [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
105
+ supported values are `low`, `medium`, and `high`. Reducing reasoning effort can
106
+ result in faster responses and fewer tokens used on reasoning in a response.
107
+
100
108
response_format: Specifies the format that the model must output. Compatible with
101
109
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
102
110
[GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
@@ -155,6 +163,7 @@ def create(
155
163
"instructions" : instructions ,
156
164
"metadata" : metadata ,
157
165
"name" : name ,
166
+ "reasoning_effort" : reasoning_effort ,
158
167
"response_format" : response_format ,
159
168
"temperature" : temperature ,
160
169
"tool_resources" : tool_resources ,
@@ -210,8 +219,42 @@ def update(
210
219
description : Optional [str ] | NotGiven = NOT_GIVEN ,
211
220
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
212
221
metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
213
- model : str | NotGiven = NOT_GIVEN ,
222
+ model : Union [
223
+ str ,
224
+ Literal [
225
+ "o3-mini" ,
226
+ "o3-mini-2025-01-31" ,
227
+ "o1" ,
228
+ "o1-2024-12-17" ,
229
+ "gpt-4o" ,
230
+ "gpt-4o-2024-11-20" ,
231
+ "gpt-4o-2024-08-06" ,
232
+ "gpt-4o-2024-05-13" ,
233
+ "gpt-4o-mini" ,
234
+ "gpt-4o-mini-2024-07-18" ,
235
+ "gpt-4-turbo" ,
236
+ "gpt-4-turbo-2024-04-09" ,
237
+ "gpt-4-0125-preview" ,
238
+ "gpt-4-turbo-preview" ,
239
+ "gpt-4-1106-preview" ,
240
+ "gpt-4-vision-preview" ,
241
+ "gpt-4" ,
242
+ "gpt-4-0314" ,
243
+ "gpt-4-0613" ,
244
+ "gpt-4-32k" ,
245
+ "gpt-4-32k-0314" ,
246
+ "gpt-4-32k-0613" ,
247
+ "gpt-3.5-turbo" ,
248
+ "gpt-3.5-turbo-16k" ,
249
+ "gpt-3.5-turbo-0613" ,
250
+ "gpt-3.5-turbo-1106" ,
251
+ "gpt-3.5-turbo-0125" ,
252
+ "gpt-3.5-turbo-16k-0613" ,
253
+ ],
254
+ ]
255
+ | NotGiven = NOT_GIVEN ,
214
256
name : Optional [str ] | NotGiven = NOT_GIVEN ,
257
+ reasoning_effort : Optional [Literal ["low" , "medium" , "high" ]] | NotGiven = NOT_GIVEN ,
215
258
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
216
259
temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
217
260
tool_resources : Optional [assistant_update_params .ToolResources ] | NotGiven = NOT_GIVEN ,
@@ -249,6 +292,13 @@ def update(
249
292
250
293
name: The name of the assistant. The maximum length is 256 characters.
251
294
295
+ reasoning_effort: **o1 and o3-mini models only**
296
+
297
+ Constrains effort on reasoning for
298
+ [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
299
+ supported values are `low`, `medium`, and `high`. Reducing reasoning effort can
300
+ result in faster responses and fewer tokens used on reasoning in a response.
301
+
252
302
response_format: Specifies the format that the model must output. Compatible with
253
303
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
254
304
[GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
@@ -309,6 +359,7 @@ def update(
309
359
"metadata" : metadata ,
310
360
"model" : model ,
311
361
"name" : name ,
362
+ "reasoning_effort" : reasoning_effort ,
312
363
"response_format" : response_format ,
313
364
"temperature" : temperature ,
314
365
"tool_resources" : tool_resources ,
@@ -451,6 +502,7 @@ async def create(
451
502
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
452
503
metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
453
504
name : Optional [str ] | NotGiven = NOT_GIVEN ,
505
+ reasoning_effort : Optional [Literal ["low" , "medium" , "high" ]] | NotGiven = NOT_GIVEN ,
454
506
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
455
507
temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
456
508
tool_resources : Optional [assistant_create_params .ToolResources ] | NotGiven = NOT_GIVEN ,
@@ -487,6 +539,13 @@ async def create(
487
539
488
540
name: The name of the assistant. The maximum length is 256 characters.
489
541
542
+ reasoning_effort: **o1 and o3-mini models only**
543
+
544
+ Constrains effort on reasoning for
545
+ [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
546
+ supported values are `low`, `medium`, and `high`. Reducing reasoning effort can
547
+ result in faster responses and fewer tokens used on reasoning in a response.
548
+
490
549
response_format: Specifies the format that the model must output. Compatible with
491
550
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
492
551
[GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
@@ -545,6 +604,7 @@ async def create(
545
604
"instructions" : instructions ,
546
605
"metadata" : metadata ,
547
606
"name" : name ,
607
+ "reasoning_effort" : reasoning_effort ,
548
608
"response_format" : response_format ,
549
609
"temperature" : temperature ,
550
610
"tool_resources" : tool_resources ,
@@ -600,8 +660,42 @@ async def update(
600
660
description : Optional [str ] | NotGiven = NOT_GIVEN ,
601
661
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
602
662
metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
603
- model : str | NotGiven = NOT_GIVEN ,
663
+ model : Union [
664
+ str ,
665
+ Literal [
666
+ "o3-mini" ,
667
+ "o3-mini-2025-01-31" ,
668
+ "o1" ,
669
+ "o1-2024-12-17" ,
670
+ "gpt-4o" ,
671
+ "gpt-4o-2024-11-20" ,
672
+ "gpt-4o-2024-08-06" ,
673
+ "gpt-4o-2024-05-13" ,
674
+ "gpt-4o-mini" ,
675
+ "gpt-4o-mini-2024-07-18" ,
676
+ "gpt-4-turbo" ,
677
+ "gpt-4-turbo-2024-04-09" ,
678
+ "gpt-4-0125-preview" ,
679
+ "gpt-4-turbo-preview" ,
680
+ "gpt-4-1106-preview" ,
681
+ "gpt-4-vision-preview" ,
682
+ "gpt-4" ,
683
+ "gpt-4-0314" ,
684
+ "gpt-4-0613" ,
685
+ "gpt-4-32k" ,
686
+ "gpt-4-32k-0314" ,
687
+ "gpt-4-32k-0613" ,
688
+ "gpt-3.5-turbo" ,
689
+ "gpt-3.5-turbo-16k" ,
690
+ "gpt-3.5-turbo-0613" ,
691
+ "gpt-3.5-turbo-1106" ,
692
+ "gpt-3.5-turbo-0125" ,
693
+ "gpt-3.5-turbo-16k-0613" ,
694
+ ],
695
+ ]
696
+ | NotGiven = NOT_GIVEN ,
604
697
name : Optional [str ] | NotGiven = NOT_GIVEN ,
698
+ reasoning_effort : Optional [Literal ["low" , "medium" , "high" ]] | NotGiven = NOT_GIVEN ,
605
699
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
606
700
temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
607
701
tool_resources : Optional [assistant_update_params .ToolResources ] | NotGiven = NOT_GIVEN ,
@@ -639,6 +733,13 @@ async def update(
639
733
640
734
name: The name of the assistant. The maximum length is 256 characters.
641
735
736
+ reasoning_effort: **o1 and o3-mini models only**
737
+
738
+ Constrains effort on reasoning for
739
+ [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
740
+ supported values are `low`, `medium`, and `high`. Reducing reasoning effort can
741
+ result in faster responses and fewer tokens used on reasoning in a response.
742
+
642
743
response_format: Specifies the format that the model must output. Compatible with
643
744
[GPT-4o](https://platform.openai.com/docs/models#gpt-4o),
644
745
[GPT-4 Turbo](https://platform.openai.com/docs/models#gpt-4-turbo-and-gpt-4),
@@ -699,6 +800,7 @@ async def update(
699
800
"metadata" : metadata ,
700
801
"model" : model ,
701
802
"name" : name ,
803
+ "reasoning_effort" : reasoning_effort ,
702
804
"response_format" : response_format ,
703
805
"temperature" : temperature ,
704
806
"tool_resources" : tool_resources ,
0 commit comments