@@ -164,8 +164,9 @@ def create(
164164 assistant will be used.
165165
166166 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`.
169170
170171 Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
171172 message the model generates is valid JSON.
@@ -314,8 +315,9 @@ def create(
314315 assistant will be used.
315316
316317 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`.
319321
320322 Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
321323 message the model generates is valid JSON.
@@ -460,8 +462,9 @@ def create(
460462 assistant will be used.
461463
462464 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`.
465468
466469 Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
467470 message the model generates is valid JSON.
@@ -1097,7 +1100,7 @@ def poll(
10971100 if is_given (poll_interval_ms ):
10981101 extra_headers ["X-Stainless-Custom-Poll-Interval" ] = str (poll_interval_ms )
10991102
1100- terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" }
1103+ terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" , "incomplete" }
11011104 while True :
11021105 response = self .with_raw_response .retrieve (
11031106 thread_id = thread_id ,
@@ -1718,8 +1721,9 @@ async def create(
17181721 assistant will be used.
17191722
17201723 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`.
17231727
17241728 Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
17251729 message the model generates is valid JSON.
@@ -1868,8 +1872,9 @@ async def create(
18681872 assistant will be used.
18691873
18701874 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`.
18731878
18741879 Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
18751880 message the model generates is valid JSON.
@@ -2014,8 +2019,9 @@ async def create(
20142019 assistant will be used.
20152020
20162021 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`.
20192025
20202026 Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
20212027 message the model generates is valid JSON.
@@ -2653,7 +2659,7 @@ async def poll(
26532659 if is_given (poll_interval_ms ):
26542660 extra_headers ["X-Stainless-Custom-Poll-Interval" ] = str (poll_interval_ms )
26552661
2656- terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" }
2662+ terminal_states = {"requires_action" , "cancelled" , "completed" , "failed" , "expired" , "incomplete" }
26572663 while True :
26582664 response = await self .with_raw_response .retrieve (
26592665 thread_id = thread_id ,
0 commit comments