@@ -164,8 +164,9 @@ def create(
164
164
assistant will be used.
165
165
166
166
response_format: Specifies the format that the model must output. Compatible with
167
- [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
168
- all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
167
+ [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
168
+ [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
169
+ and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
169
170
170
171
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
171
172
message the model generates is valid JSON.
@@ -314,8 +315,9 @@ def create(
314
315
assistant will be used.
315
316
316
317
response_format: Specifies the format that the model must output. Compatible with
317
- [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
318
- all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
318
+ [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
319
+ [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
320
+ and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
319
321
320
322
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
321
323
message the model generates is valid JSON.
@@ -460,8 +462,9 @@ def create(
460
462
assistant will be used.
461
463
462
464
response_format: Specifies the format that the model must output. Compatible with
463
- [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
464
- all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
465
+ [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
466
+ [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
467
+ and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
465
468
466
469
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
467
470
message the model generates is valid JSON.
@@ -1097,7 +1100,7 @@ def poll(
1097
1100
if is_given (poll_interval_ms ):
1098
1101
extra_headers ["X-Stainless-Custom-Poll-Interval" ] = str (poll_interval_ms )
1099
1102
1100
- terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" }
1103
+ terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" , "incomplete" }
1101
1104
while True :
1102
1105
response = self .with_raw_response .retrieve (
1103
1106
thread_id = thread_id ,
@@ -1718,8 +1721,9 @@ async def create(
1718
1721
assistant will be used.
1719
1722
1720
1723
response_format: Specifies the format that the model must output. Compatible with
1721
- [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
1722
- all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1724
+ [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
1725
+ [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
1726
+ and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1723
1727
1724
1728
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1725
1729
message the model generates is valid JSON.
@@ -1868,8 +1872,9 @@ async def create(
1868
1872
assistant will be used.
1869
1873
1870
1874
response_format: Specifies the format that the model must output. Compatible with
1871
- [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
1872
- all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1875
+ [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
1876
+ [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
1877
+ and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1873
1878
1874
1879
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1875
1880
message the model generates is valid JSON.
@@ -2014,8 +2019,9 @@ async def create(
2014
2019
assistant will be used.
2015
2020
2016
2021
response_format: Specifies the format that the model must output. Compatible with
2017
- [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
2018
- all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
2022
+ [GPT-4o](https://platform.openai.com/docs/models/gpt-4o),
2023
+ [GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
2024
+ and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
2019
2025
2020
2026
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
2021
2027
message the model generates is valid JSON.
@@ -2653,7 +2659,7 @@ async def poll(
2653
2659
if is_given (poll_interval_ms ):
2654
2660
extra_headers ["X-Stainless-Custom-Poll-Interval" ] = str (poll_interval_ms )
2655
2661
2656
- terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" }
2662
+ terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" , "incomplete" }
2657
2663
while True :
2658
2664
response = await self .with_raw_response .retrieve (
2659
2665
thread_id = thread_id ,
0 commit comments