33from __future__ import annotations
44
55from typing import Union , Iterable , Optional
6- from typing_extensions import Literal , TypedDict
6+ from typing_extensions import Literal , Required , TypedDict
77
88from .response_input_item_param import ResponseInputItemParam
99
1010__all__ = ["ResponseCompactParams" ]
1111
1212
1313class ResponseCompactParams (TypedDict , total = False ):
14+ model : Required [
15+ Union [
16+ Literal [
17+ "gpt-5.1" ,
18+ "gpt-5.1-2025-11-13" ,
19+ "gpt-5.1-codex" ,
20+ "gpt-5.1-mini" ,
21+ "gpt-5.1-chat-latest" ,
22+ "gpt-5" ,
23+ "gpt-5-mini" ,
24+ "gpt-5-nano" ,
25+ "gpt-5-2025-08-07" ,
26+ "gpt-5-mini-2025-08-07" ,
27+ "gpt-5-nano-2025-08-07" ,
28+ "gpt-5-chat-latest" ,
29+ "gpt-4.1" ,
30+ "gpt-4.1-mini" ,
31+ "gpt-4.1-nano" ,
32+ "gpt-4.1-2025-04-14" ,
33+ "gpt-4.1-mini-2025-04-14" ,
34+ "gpt-4.1-nano-2025-04-14" ,
35+ "o4-mini" ,
36+ "o4-mini-2025-04-16" ,
37+ "o3" ,
38+ "o3-2025-04-16" ,
39+ "o3-mini" ,
40+ "o3-mini-2025-01-31" ,
41+ "o1" ,
42+ "o1-2024-12-17" ,
43+ "o1-preview" ,
44+ "o1-preview-2024-09-12" ,
45+ "o1-mini" ,
46+ "o1-mini-2024-09-12" ,
47+ "gpt-4o" ,
48+ "gpt-4o-2024-11-20" ,
49+ "gpt-4o-2024-08-06" ,
50+ "gpt-4o-2024-05-13" ,
51+ "gpt-4o-audio-preview" ,
52+ "gpt-4o-audio-preview-2024-10-01" ,
53+ "gpt-4o-audio-preview-2024-12-17" ,
54+ "gpt-4o-audio-preview-2025-06-03" ,
55+ "gpt-4o-mini-audio-preview" ,
56+ "gpt-4o-mini-audio-preview-2024-12-17" ,
57+ "gpt-4o-search-preview" ,
58+ "gpt-4o-mini-search-preview" ,
59+ "gpt-4o-search-preview-2025-03-11" ,
60+ "gpt-4o-mini-search-preview-2025-03-11" ,
61+ "chatgpt-4o-latest" ,
62+ "codex-mini-latest" ,
63+ "gpt-4o-mini" ,
64+ "gpt-4o-mini-2024-07-18" ,
65+ "gpt-4-turbo" ,
66+ "gpt-4-turbo-2024-04-09" ,
67+ "gpt-4-0125-preview" ,
68+ "gpt-4-turbo-preview" ,
69+ "gpt-4-1106-preview" ,
70+ "gpt-4-vision-preview" ,
71+ "gpt-4" ,
72+ "gpt-4-0314" ,
73+ "gpt-4-0613" ,
74+ "gpt-4-32k" ,
75+ "gpt-4-32k-0314" ,
76+ "gpt-4-32k-0613" ,
77+ "gpt-3.5-turbo" ,
78+ "gpt-3.5-turbo-16k" ,
79+ "gpt-3.5-turbo-0301" ,
80+ "gpt-3.5-turbo-0613" ,
81+ "gpt-3.5-turbo-1106" ,
82+ "gpt-3.5-turbo-0125" ,
83+ "gpt-3.5-turbo-16k-0613" ,
84+ "o1-pro" ,
85+ "o1-pro-2025-03-19" ,
86+ "o3-pro" ,
87+ "o3-pro-2025-06-10" ,
88+ "o3-deep-research" ,
89+ "o3-deep-research-2025-06-26" ,
90+ "o4-mini-deep-research" ,
91+ "o4-mini-deep-research-2025-06-26" ,
92+ "computer-use-preview" ,
93+ "computer-use-preview-2025-03-11" ,
94+ "gpt-5-codex" ,
95+ "gpt-5-pro" ,
96+ "gpt-5-pro-2025-10-06" ,
97+ "gpt-5.1-codex-max" ,
98+ ],
99+ str ,
100+ None ,
101+ ]
102+ ]
103+ """Model ID used to generate the response, like `gpt-5` or `o3`.
104+
105+ OpenAI offers a wide range of models with different capabilities, performance
106+ characteristics, and price points. Refer to the
107+ [model guide](https://platform.openai.com/docs/models) to browse and compare
108+ available models.
109+ """
110+
14111 input : Union [str , Iterable [ResponseInputItemParam ], None ]
15112 """Text, image, or file inputs to the model, used to generate a response"""
16113
@@ -22,101 +119,6 @@ class ResponseCompactParams(TypedDict, total=False):
22119 system (or developer) messages in new responses.
23120 """
24121
25- model : Union [
26- Literal [
27- "gpt-5.1" ,
28- "gpt-5.1-2025-11-13" ,
29- "gpt-5.1-codex" ,
30- "gpt-5.1-mini" ,
31- "gpt-5.1-chat-latest" ,
32- "gpt-5" ,
33- "gpt-5-mini" ,
34- "gpt-5-nano" ,
35- "gpt-5-2025-08-07" ,
36- "gpt-5-mini-2025-08-07" ,
37- "gpt-5-nano-2025-08-07" ,
38- "gpt-5-chat-latest" ,
39- "gpt-4.1" ,
40- "gpt-4.1-mini" ,
41- "gpt-4.1-nano" ,
42- "gpt-4.1-2025-04-14" ,
43- "gpt-4.1-mini-2025-04-14" ,
44- "gpt-4.1-nano-2025-04-14" ,
45- "o4-mini" ,
46- "o4-mini-2025-04-16" ,
47- "o3" ,
48- "o3-2025-04-16" ,
49- "o3-mini" ,
50- "o3-mini-2025-01-31" ,
51- "o1" ,
52- "o1-2024-12-17" ,
53- "o1-preview" ,
54- "o1-preview-2024-09-12" ,
55- "o1-mini" ,
56- "o1-mini-2024-09-12" ,
57- "gpt-4o" ,
58- "gpt-4o-2024-11-20" ,
59- "gpt-4o-2024-08-06" ,
60- "gpt-4o-2024-05-13" ,
61- "gpt-4o-audio-preview" ,
62- "gpt-4o-audio-preview-2024-10-01" ,
63- "gpt-4o-audio-preview-2024-12-17" ,
64- "gpt-4o-audio-preview-2025-06-03" ,
65- "gpt-4o-mini-audio-preview" ,
66- "gpt-4o-mini-audio-preview-2024-12-17" ,
67- "gpt-4o-search-preview" ,
68- "gpt-4o-mini-search-preview" ,
69- "gpt-4o-search-preview-2025-03-11" ,
70- "gpt-4o-mini-search-preview-2025-03-11" ,
71- "chatgpt-4o-latest" ,
72- "codex-mini-latest" ,
73- "gpt-4o-mini" ,
74- "gpt-4o-mini-2024-07-18" ,
75- "gpt-4-turbo" ,
76- "gpt-4-turbo-2024-04-09" ,
77- "gpt-4-0125-preview" ,
78- "gpt-4-turbo-preview" ,
79- "gpt-4-1106-preview" ,
80- "gpt-4-vision-preview" ,
81- "gpt-4" ,
82- "gpt-4-0314" ,
83- "gpt-4-0613" ,
84- "gpt-4-32k" ,
85- "gpt-4-32k-0314" ,
86- "gpt-4-32k-0613" ,
87- "gpt-3.5-turbo" ,
88- "gpt-3.5-turbo-16k" ,
89- "gpt-3.5-turbo-0301" ,
90- "gpt-3.5-turbo-0613" ,
91- "gpt-3.5-turbo-1106" ,
92- "gpt-3.5-turbo-0125" ,
93- "gpt-3.5-turbo-16k-0613" ,
94- "o1-pro" ,
95- "o1-pro-2025-03-19" ,
96- "o3-pro" ,
97- "o3-pro-2025-06-10" ,
98- "o3-deep-research" ,
99- "o3-deep-research-2025-06-26" ,
100- "o4-mini-deep-research" ,
101- "o4-mini-deep-research-2025-06-26" ,
102- "computer-use-preview" ,
103- "computer-use-preview-2025-03-11" ,
104- "gpt-5-codex" ,
105- "gpt-5-pro" ,
106- "gpt-5-pro-2025-10-06" ,
107- "gpt-5.1-codex-max" ,
108- ],
109- str ,
110- None ,
111- ]
112- """Model ID used to generate the response, like `gpt-5` or `o3`.
113-
114- OpenAI offers a wide range of models with different capabilities, performance
115- characteristics, and price points. Refer to the
116- [model guide](https://platform.openai.com/docs/models) to browse and compare
117- available models.
118- """
119-
120122 previous_response_id : Optional [str ]
121123 """The unique ID of the previous response to the model.
122124
0 commit comments