openai 0.98.0 → 0.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/admin/organization/usage_audio_speeches_response.rb +16 -3
  5. data/lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb +16 -3
  6. data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb +16 -3
  7. data/lib/openai/models/admin/organization/usage_completions_response.rb +16 -3
  8. data/lib/openai/models/admin/organization/usage_costs_response.rb +16 -3
  9. data/lib/openai/models/admin/organization/usage_embeddings_response.rb +16 -3
  10. data/lib/openai/models/admin/organization/usage_file_search_calls_response.rb +16 -3
  11. data/lib/openai/models/admin/organization/usage_images_response.rb +16 -3
  12. data/lib/openai/models/admin/organization/usage_moderations_response.rb +16 -3
  13. data/lib/openai/models/admin/organization/usage_vector_stores_response.rb +16 -3
  14. data/lib/openai/models/admin/organization/usage_web_search_calls_response.rb +16 -3
  15. data/lib/openai/models/all_models.rb +42 -0
  16. data/lib/openai/models/audio/speech_create_params.rb +6 -0
  17. data/lib/openai/models/audio/voice.rb +75 -0
  18. data/lib/openai/models/audio/voice_create_params.rb +217 -0
  19. data/lib/openai/models/beta/agent_create_params.rb +0 -3
  20. data/lib/openai/models/beta/agent_update_params.rb +0 -3
  21. data/lib/openai/models/beta/agents/session_create_params.rb +0 -3
  22. data/lib/openai/models/beta/agents/session_update_params.rb +0 -3
  23. data/lib/openai/models/beta/beta_response.rb +220 -0
  24. data/lib/openai/models/beta/beta_responses_client_event.rb +220 -0
  25. data/lib/openai/models/beta/beta_tool.rb +3 -9
  26. data/lib/openai/models/beta/response_compact_params.rb +220 -0
  27. data/lib/openai/models/beta/response_create_params.rb +220 -0
  28. data/lib/openai/models/chat/chat_completion_audio_param.rb +6 -3
  29. data/lib/openai/models/chat_model.rb +178 -0
  30. data/lib/openai/models/image.rb +14 -14
  31. data/lib/openai/models/image_create_variation_params.rb +7 -7
  32. data/lib/openai/models/image_edit_params.rb +76 -87
  33. data/lib/openai/models/image_generate_params.rb +51 -62
  34. data/lib/openai/models/image_model.rb +5 -3
  35. data/lib/openai/models/realtime/realtime_audio_config_output.rb +9 -6
  36. data/lib/openai/models/realtime/realtime_response_create_audio_output.rb +9 -6
  37. data/lib/openai/models/responses/response_compact_params.rb +220 -0
  38. data/lib/openai/models/responses/tool.rb +3 -9
  39. data/lib/openai/models/responses_model.rb +42 -0
  40. data/lib/openai/models/webhooks/agent_session_action_required_webhook_event.rb +109 -0
  41. data/lib/openai/models/webhooks/agent_session_created_webhook_event.rb +106 -0
  42. data/lib/openai/models/webhooks/agent_session_failed_webhook_event.rb +86 -0
  43. data/lib/openai/models/webhooks/agent_session_idle_webhook_event.rb +86 -0
  44. data/lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb +86 -0
  45. data/lib/openai/models/webhooks/unwrap_webhook_event.rb +18 -2
  46. data/lib/openai/models/webhooks/webhook_create_params.rb +5 -0
  47. data/lib/openai/models/webhooks/webhook_test_params.rb +5 -0
  48. data/lib/openai/models/webhooks/webhook_update_params.rb +5 -0
  49. data/lib/openai/resources/audio/speech.rb +2 -0
  50. data/lib/openai/resources/audio/voices.rb +53 -0
  51. data/lib/openai/resources/audio.rb +5 -0
  52. data/lib/openai/resources/images.rb +71 -103
  53. data/lib/openai/resources/webhooks.rb +1 -1
  54. data/lib/openai/version.rb +1 -1
  55. data/lib/openai.rb +8 -0
  56. data/rbi/openai/models/admin/organization/usage_audio_speeches_response.rbi +19 -2
  57. data/rbi/openai/models/admin/organization/usage_audio_transcriptions_response.rbi +19 -2
  58. data/rbi/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbi +19 -2
  59. data/rbi/openai/models/admin/organization/usage_completions_response.rbi +19 -2
  60. data/rbi/openai/models/admin/organization/usage_costs_response.rbi +19 -2
  61. data/rbi/openai/models/admin/organization/usage_embeddings_response.rbi +19 -2
  62. data/rbi/openai/models/admin/organization/usage_file_search_calls_response.rbi +19 -2
  63. data/rbi/openai/models/admin/organization/usage_images_response.rbi +19 -2
  64. data/rbi/openai/models/admin/organization/usage_moderations_response.rbi +19 -2
  65. data/rbi/openai/models/admin/organization/usage_vector_stores_response.rbi +19 -2
  66. data/rbi/openai/models/admin/organization/usage_web_search_calls_response.rbi +19 -2
  67. data/rbi/openai/models/audio/speech_create_params.rbi +6 -0
  68. data/rbi/openai/models/audio/voice.rbi +111 -0
  69. data/rbi/openai/models/audio/voice_create_params.rbi +321 -0
  70. data/rbi/openai/models/beta/agent_create_params.rbi +0 -3
  71. data/rbi/openai/models/beta/agent_update_params.rbi +0 -3
  72. data/rbi/openai/models/beta/agents/session_create_params.rbi +0 -3
  73. data/rbi/openai/models/beta/agents/session_update_params.rbi +0 -3
  74. data/rbi/openai/models/beta/beta_tool.rbi +3 -9
  75. data/rbi/openai/models/chat/chat_completion_audio_param.rbi +6 -3
  76. data/rbi/openai/models/image.rbi +14 -14
  77. data/rbi/openai/models/image_create_variation_params.rbi +6 -6
  78. data/rbi/openai/models/image_edit_params.rbi +61 -82
  79. data/rbi/openai/models/image_generate_params.rbi +30 -61
  80. data/rbi/openai/models/image_model.rbi +3 -3
  81. data/rbi/openai/models/realtime/realtime_audio_config_output.rbi +9 -6
  82. data/rbi/openai/models/realtime/realtime_response_create_audio_output.rbi +9 -6
  83. data/rbi/openai/models/responses/tool.rbi +3 -9
  84. data/rbi/openai/models/webhooks/agent_session_action_required_webhook_event.rbi +222 -0
  85. data/rbi/openai/models/webhooks/agent_session_created_webhook_event.rbi +202 -0
  86. data/rbi/openai/models/webhooks/agent_session_failed_webhook_event.rbi +151 -0
  87. data/rbi/openai/models/webhooks/agent_session_idle_webhook_event.rbi +151 -0
  88. data/rbi/openai/models/webhooks/agent_session_in_progress_webhook_event.rbi +151 -0
  89. data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +7 -1
  90. data/rbi/openai/models/webhooks/webhook_create_params.rbi +20 -0
  91. data/rbi/openai/models/webhooks/webhook_test_params.rbi +20 -0
  92. data/rbi/openai/models/webhooks/webhook_update_params.rbi +20 -0
  93. data/rbi/openai/resources/audio/speech.rbi +2 -0
  94. data/rbi/openai/resources/audio/voices.rbi +49 -0
  95. data/rbi/openai/resources/audio.rbi +4 -0
  96. data/rbi/openai/resources/images.rbi +69 -103
  97. data/rbi/openai/resources/webhooks.rbi +5 -0
  98. data/sig/openai/models/admin/organization/usage_audio_speeches_response.rbs +20 -3
  99. data/sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs +20 -3
  100. data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs +20 -3
  101. data/sig/openai/models/admin/organization/usage_completions_response.rbs +20 -3
  102. data/sig/openai/models/admin/organization/usage_costs_response.rbs +20 -3
  103. data/sig/openai/models/admin/organization/usage_embeddings_response.rbs +20 -3
  104. data/sig/openai/models/admin/organization/usage_file_search_calls_response.rbs +20 -3
  105. data/sig/openai/models/admin/organization/usage_images_response.rbs +20 -3
  106. data/sig/openai/models/admin/organization/usage_moderations_response.rbs +20 -3
  107. data/sig/openai/models/admin/organization/usage_vector_stores_response.rbs +20 -3
  108. data/sig/openai/models/admin/organization/usage_web_search_calls_response.rbs +20 -3
  109. data/sig/openai/models/audio/speech_create_params.rbs +4 -0
  110. data/sig/openai/models/audio/voice.rbs +70 -0
  111. data/sig/openai/models/audio/voice_create_params.rbs +203 -0
  112. data/sig/openai/models/beta/agent_create_params.rbs +1 -5
  113. data/sig/openai/models/beta/agent_update_params.rbs +1 -5
  114. data/sig/openai/models/beta/agents/session_create_params.rbs +1 -5
  115. data/sig/openai/models/beta/agents/session_update_params.rbs +1 -5
  116. data/sig/openai/models/beta/beta_tool.rbs +3 -9
  117. data/sig/openai/models/chat/chat_completion_audio_param.rbs +4 -2
  118. data/sig/openai/models/image.rbs +21 -21
  119. data/sig/openai/models/image_create_variation_params.rbs +4 -4
  120. data/sig/openai/models/image_edit_params.rbs +46 -60
  121. data/sig/openai/models/image_generate_params.rbs +23 -45
  122. data/sig/openai/models/image_model.rbs +6 -6
  123. data/sig/openai/models/realtime/realtime_audio_config_output.rbs +9 -6
  124. data/sig/openai/models/realtime/realtime_response_create_audio_output.rbs +9 -6
  125. data/sig/openai/models/responses/tool.rbs +3 -9
  126. data/sig/openai/models/webhooks/agent_session_action_required_webhook_event.rbs +114 -0
  127. data/sig/openai/models/webhooks/agent_session_created_webhook_event.rbs +115 -0
  128. data/sig/openai/models/webhooks/agent_session_failed_webhook_event.rbs +89 -0
  129. data/sig/openai/models/webhooks/agent_session_idle_webhook_event.rbs +89 -0
  130. data/sig/openai/models/webhooks/agent_session_in_progress_webhook_event.rbs +89 -0
  131. data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +6 -1
  132. data/sig/openai/models/webhooks/webhook_create_params.rbs +10 -0
  133. data/sig/openai/models/webhooks/webhook_test_params.rbs +10 -0
  134. data/sig/openai/models/webhooks/webhook_update_params.rbs +10 -0
  135. data/sig/openai/resources/audio/voices.rbs +14 -0
  136. data/sig/openai/resources/audio.rbs +2 -0
  137. data/sig/openai/resources/webhooks.rbs +6 -1
  138. metadata +25 -1
@@ -15,7 +15,8 @@ module OpenAI
15
15
  # The voice the model uses to respond. Supported built-in voices are `alloy`,
16
16
  # `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`,
17
17
  # `marin`, and `cedar`. You may also provide a custom voice object with an `id`,
18
- # for example `{ "id": "voice_1234" }`.
18
+ # for example `{ "id": "voice_1234" }`. Custom voices must be created from audio
19
+ # samples. Voices created from text prompts are supported only in Live.
19
20
  #
20
21
  # @return [String, Symbol, OpenAI::Models::Chat::ChatCompletionAudioParam::Voice::ID, OpenAI::Models::Chat::ChatCompletionAudioParam::Voice]
21
22
  required :voice, union: -> { OpenAI::Chat::ChatCompletionAudioParam::Voice }
@@ -33,7 +34,8 @@ module OpenAI
33
34
  # The voice the model uses to respond. Supported built-in voices are `alloy`,
34
35
  # `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`,
35
36
  # `marin`, and `cedar`. You may also provide a custom voice object with an `id`,
36
- # for example `{ "id": "voice_1234" }`.
37
+ # for example `{ "id": "voice_1234" }`. Custom voices must be created from audio
38
+ # samples. Voices created from text prompts are supported only in Live.
37
39
 
38
40
  # Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`,
39
41
  # or `pcm16`.
@@ -56,7 +58,8 @@ module OpenAI
56
58
  # The voice the model uses to respond. Supported built-in voices are `alloy`,
57
59
  # `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`,
58
60
  # `marin`, and `cedar`. You may also provide a custom voice object with an `id`,
59
- # for example `{ "id": "voice_1234" }`.
61
+ # for example `{ "id": "voice_1234" }`. Custom voices must be created from audio
62
+ # samples. Voices created from text prompts are supported only in Live.
60
63
  #
61
64
  # @see OpenAI::Models::Chat::ChatCompletionAudioParam#voice
62
65
  module Voice
@@ -19,80 +19,258 @@ module OpenAI
19
19
  GPT_5_4_NANO = :"gpt-5.4-nano"
20
20
  GPT_5_4_MINI_2026_03_17 = :"gpt-5.4-mini-2026-03-17"
21
21
  GPT_5_4_NANO_2026_03_17 = :"gpt-5.4-nano-2026-03-17"
22
+ # @deprecated Announced shutdown date: 2026-08-10. See
23
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
24
+ # replacements.
22
25
  GPT_5_3_CHAT_LATEST = :"gpt-5.3-chat-latest"
23
26
  GPT_5_2 = :"gpt-5.2"
24
27
  GPT_5_2_2025_12_11 = :"gpt-5.2-2025-12-11"
28
+ # @deprecated Announced shutdown date: 2026-08-10. See
29
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
30
+ # replacements.
25
31
  GPT_5_2_CHAT_LATEST = :"gpt-5.2-chat-latest"
26
32
  GPT_5_2_PRO = :"gpt-5.2-pro"
27
33
  GPT_5_2_PRO_2025_12_11 = :"gpt-5.2-pro-2025-12-11"
28
34
  GPT_5_1 = :"gpt-5.1"
29
35
  GPT_5_1_2025_11_13 = :"gpt-5.1-2025-11-13"
36
+ # @deprecated Announced shutdown date: 2026-07-23. See
37
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
38
+ # replacements.
30
39
  GPT_5_1_CODEX = :"gpt-5.1-codex"
40
+ # @deprecated Not a supported model ID. Retained for SDK compatibility.
31
41
  GPT_5_1_MINI = :"gpt-5.1-mini"
42
+ # @deprecated Announced shutdown date: 2026-07-23. See
43
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
44
+ # replacements.
32
45
  GPT_5_1_CHAT_LATEST = :"gpt-5.1-chat-latest"
46
+ # @deprecated Announced shutdown date: 2026-12-11. See
47
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
48
+ # replacements.
33
49
  GPT_5 = :"gpt-5"
50
+ # @deprecated Announced shutdown date: 2026-12-11. See
51
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
52
+ # replacements.
34
53
  GPT_5_MINI = :"gpt-5-mini"
54
+ # @deprecated Announced shutdown date: 2026-12-11. See
55
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
56
+ # replacements.
35
57
  GPT_5_NANO = :"gpt-5-nano"
58
+ # @deprecated Announced shutdown date: 2026-12-11. See
59
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
60
+ # replacements.
36
61
  GPT_5_2025_08_07 = :"gpt-5-2025-08-07"
62
+ # @deprecated Announced shutdown date: 2026-12-11. See
63
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
64
+ # replacements.
37
65
  GPT_5_MINI_2025_08_07 = :"gpt-5-mini-2025-08-07"
66
+ # @deprecated Announced shutdown date: 2026-12-11. See
67
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
68
+ # replacements.
38
69
  GPT_5_NANO_2025_08_07 = :"gpt-5-nano-2025-08-07"
70
+ # @deprecated Announced shutdown date: 2026-07-23. See
71
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
72
+ # replacements.
39
73
  GPT_5_CHAT_LATEST = :"gpt-5-chat-latest"
40
74
  GPT_4_1 = :"gpt-4.1"
41
75
  GPT_4_1_MINI = :"gpt-4.1-mini"
76
+ # @deprecated Announced shutdown date: 2026-10-23. See
77
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
78
+ # replacements.
42
79
  GPT_4_1_NANO = :"gpt-4.1-nano"
43
80
  GPT_4_1_2025_04_14 = :"gpt-4.1-2025-04-14"
44
81
  GPT_4_1_MINI_2025_04_14 = :"gpt-4.1-mini-2025-04-14"
82
+ # @deprecated Announced shutdown date: 2026-10-23. See
83
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
84
+ # replacements.
45
85
  GPT_4_1_NANO_2025_04_14 = :"gpt-4.1-nano-2025-04-14"
86
+ # @deprecated Announced shutdown date: 2026-10-23. See
87
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
88
+ # replacements.
46
89
  O4_MINI = :"o4-mini"
90
+ # @deprecated Announced shutdown date: 2026-10-23. See
91
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
92
+ # replacements.
47
93
  O4_MINI_2025_04_16 = :"o4-mini-2025-04-16"
94
+ # @deprecated Announced shutdown date: 2026-12-11. See
95
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
96
+ # replacements.
48
97
  O3 = :o3
98
+ # @deprecated Announced shutdown date: 2026-12-11. See
99
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
100
+ # replacements.
49
101
  O3_2025_04_16 = :"o3-2025-04-16"
102
+ # @deprecated Announced shutdown date: 2026-10-23. See
103
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
104
+ # replacements.
50
105
  O3_MINI = :"o3-mini"
106
+ # @deprecated Announced shutdown date: 2026-10-23. See
107
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
108
+ # replacements.
51
109
  O3_MINI_2025_01_31 = :"o3-mini-2025-01-31"
110
+ # @deprecated Announced shutdown date: 2026-10-23. See
111
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
112
+ # replacements.
52
113
  O1 = :o1
114
+ # @deprecated Announced shutdown date: 2026-10-23. See
115
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
116
+ # replacements.
53
117
  O1_2024_12_17 = :"o1-2024-12-17"
118
+ # @deprecated Announced shutdown date: 2025-07-28. See
119
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
120
+ # replacements.
54
121
  O1_PREVIEW = :"o1-preview"
122
+ # @deprecated Announced shutdown date: 2025-07-28. See
123
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
124
+ # replacements.
55
125
  O1_PREVIEW_2024_09_12 = :"o1-preview-2024-09-12"
126
+ # @deprecated Announced shutdown date: 2025-10-27. See
127
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
128
+ # replacements.
56
129
  O1_MINI = :"o1-mini"
130
+ # @deprecated Announced shutdown date: 2025-10-27. See
131
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
132
+ # replacements.
57
133
  O1_MINI_2024_09_12 = :"o1-mini-2024-09-12"
58
134
  GPT_4O = :"gpt-4o"
59
135
  GPT_4O_2024_11_20 = :"gpt-4o-2024-11-20"
60
136
  GPT_4O_2024_08_06 = :"gpt-4o-2024-08-06"
137
+ # @deprecated Announced shutdown date: 2026-10-23. See
138
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
139
+ # replacements.
61
140
  GPT_4O_2024_05_13 = :"gpt-4o-2024-05-13"
141
+ # @deprecated Announced shutdown date: 2027-01-20. See
142
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
143
+ # replacements.
62
144
  GPT_AUDIO_MINI = :"gpt-audio-mini"
145
+ # @deprecated Announced shutdown date: 2027-01-20. See
146
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
147
+ # replacements.
63
148
  GPT_AUDIO_MINI_2025_12_15 = :"gpt-audio-mini-2025-12-15"
149
+ # @deprecated Announced shutdown date: 2026-05-07. See
150
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
151
+ # replacements.
64
152
  GPT_4O_AUDIO_PREVIEW = :"gpt-4o-audio-preview"
153
+ # @deprecated Announced shutdown date: 2025-10-10. See
154
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
155
+ # replacements.
65
156
  GPT_4O_AUDIO_PREVIEW_2024_10_01 = :"gpt-4o-audio-preview-2024-10-01"
157
+ # @deprecated Announced shutdown date: 2026-05-07. See
158
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
159
+ # replacements.
66
160
  GPT_4O_AUDIO_PREVIEW_2024_12_17 = :"gpt-4o-audio-preview-2024-12-17"
161
+ # @deprecated Announced shutdown date: 2026-05-07. See
162
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
163
+ # replacements.
67
164
  GPT_4O_AUDIO_PREVIEW_2025_06_03 = :"gpt-4o-audio-preview-2025-06-03"
165
+ # @deprecated Announced shutdown date: 2026-05-07. See
166
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
167
+ # replacements.
68
168
  GPT_4O_MINI_AUDIO_PREVIEW = :"gpt-4o-mini-audio-preview"
169
+ # @deprecated Announced shutdown date: 2026-05-07. See
170
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
171
+ # replacements.
69
172
  GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17 = :"gpt-4o-mini-audio-preview-2024-12-17"
173
+ # @deprecated Announced shutdown date: 2026-07-23. See
174
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
175
+ # replacements.
70
176
  GPT_4O_SEARCH_PREVIEW = :"gpt-4o-search-preview"
177
+ # @deprecated Announced shutdown date: 2026-07-23. See
178
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
179
+ # replacements.
71
180
  GPT_4O_MINI_SEARCH_PREVIEW = :"gpt-4o-mini-search-preview"
181
+ # @deprecated Announced shutdown date: 2026-07-23. See
182
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
183
+ # replacements.
72
184
  GPT_4O_SEARCH_PREVIEW_2025_03_11 = :"gpt-4o-search-preview-2025-03-11"
185
+ # @deprecated Announced shutdown date: 2026-07-23. See
186
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
187
+ # replacements.
73
188
  GPT_4O_MINI_SEARCH_PREVIEW_2025_03_11 = :"gpt-4o-mini-search-preview-2025-03-11"
189
+ # @deprecated Announced shutdown date: 2026-02-17. See
190
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
191
+ # replacements.
74
192
  CHATGPT_4O_LATEST = :"chatgpt-4o-latest"
193
+ # @deprecated Announced shutdown date: 2026-02-12. See
194
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
195
+ # replacements.
75
196
  CODEX_MINI_LATEST = :"codex-mini-latest"
76
197
  GPT_4O_MINI = :"gpt-4o-mini"
77
198
  GPT_4O_MINI_2024_07_18 = :"gpt-4o-mini-2024-07-18"
199
+ # @deprecated Announced shutdown date: 2026-10-23. See
200
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
201
+ # replacements.
78
202
  GPT_4_TURBO = :"gpt-4-turbo"
203
+ # @deprecated Announced shutdown date: 2026-10-23. See
204
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
205
+ # replacements.
79
206
  GPT_4_TURBO_2024_04_09 = :"gpt-4-turbo-2024-04-09"
207
+ # @deprecated Announced shutdown date: 2026-03-26. See
208
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
209
+ # replacements.
80
210
  GPT_4_0125_PREVIEW = :"gpt-4-0125-preview"
211
+ # @deprecated Announced shutdown date: 2026-03-26. See
212
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
213
+ # replacements.
81
214
  GPT_4_TURBO_PREVIEW = :"gpt-4-turbo-preview"
215
+ # @deprecated Announced shutdown date: 2026-10-23. See
216
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
217
+ # replacements.
82
218
  GPT_4_1106_PREVIEW = :"gpt-4-1106-preview"
219
+ # @deprecated Announced shutdown date: 2024-12-06. See
220
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
221
+ # replacements.
83
222
  GPT_4_VISION_PREVIEW = :"gpt-4-vision-preview"
223
+ # @deprecated Announced shutdown date: 2026-10-23. See
224
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
225
+ # replacements.
84
226
  GPT_4 = :"gpt-4"
227
+ # @deprecated Announced shutdown date: 2026-03-26. See
228
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
229
+ # replacements.
85
230
  GPT_4_0314 = :"gpt-4-0314"
231
+ # @deprecated Announced shutdown date: 2026-10-23. See
232
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
233
+ # replacements.
86
234
  GPT_4_0613 = :"gpt-4-0613"
235
+ # @deprecated Announced shutdown date: 2025-06-06. See
236
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
237
+ # replacements.
87
238
  GPT_4_32K = :"gpt-4-32k"
239
+ # @deprecated Announced shutdown date: 2025-06-06. See
240
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
241
+ # replacements.
88
242
  GPT_4_32K_0314 = :"gpt-4-32k-0314"
243
+ # @deprecated Announced shutdown date: 2025-06-06. See
244
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
245
+ # replacements.
89
246
  GPT_4_32K_0613 = :"gpt-4-32k-0613"
247
+ # @deprecated Announced shutdown date: 2026-10-23. See
248
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
249
+ # replacements.
90
250
  GPT_3_5_TURBO = :"gpt-3.5-turbo"
251
+ # @deprecated Announced shutdown date: 2024-09-13. See
252
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
253
+ # replacements.
91
254
  GPT_3_5_TURBO_16K = :"gpt-3.5-turbo-16k"
255
+ # @deprecated Announced shutdown date: 2024-09-13. See
256
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
257
+ # replacements.
92
258
  GPT_3_5_TURBO_0301 = :"gpt-3.5-turbo-0301"
259
+ # @deprecated Announced shutdown date: 2024-09-13. See
260
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
261
+ # replacements.
93
262
  GPT_3_5_TURBO_0613 = :"gpt-3.5-turbo-0613"
263
+ # @deprecated Announced shutdown date: 2026-09-28. See
264
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
265
+ # replacements.
94
266
  GPT_3_5_TURBO_1106 = :"gpt-3.5-turbo-1106"
267
+ # @deprecated Announced shutdown date: 2026-10-23. See
268
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
269
+ # replacements.
95
270
  GPT_3_5_TURBO_0125 = :"gpt-3.5-turbo-0125"
271
+ # @deprecated Announced shutdown date: 2024-09-13. See
272
+ # https://developers.openai.com/api/docs/deprecations for details and recommended
273
+ # replacements.
96
274
  GPT_3_5_TURBO_16K_0613 = :"gpt-3.5-turbo-16k-0613"
97
275
 
98
276
  # @!method self.values
@@ -4,23 +4,23 @@ module OpenAI
4
4
  module Models
5
5
  class Image < OpenAI::Internal::Type::BaseModel
6
6
  # @!attribute b64_json
7
- # The base64-encoded JSON of the generated image. Returned by default for the GPT
8
- # image models, and only present if `response_format` is set to `b64_json` for
9
- # `dall-e-2` and `dall-e-3`.
7
+ # The base64-encoded JSON of the generated image. Returned by default for GPT
8
+ # image models, or when `response_format` is set to `b64_json` for models that
9
+ # support that parameter.
10
10
  #
11
11
  # @return [String, nil]
12
12
  optional :b64_json, String
13
13
 
14
14
  # @!attribute revised_prompt
15
- # For `dall-e-3` only, the revised prompt that was used to generate the image.
15
+ # The revised prompt used to generate the image, for models that support prompt
16
+ # revision. Not returned by GPT image models.
16
17
  #
17
18
  # @return [String, nil]
18
19
  optional :revised_prompt, String
19
20
 
20
21
  # @!attribute url
21
- # When using `dall-e-2` or `dall-e-3`, the URL of the generated image if
22
- # `response_format` is set to `url` (default value). Unsupported for the GPT image
23
- # models.
22
+ # The URL of the generated image when `response_format` is set to `url` for models
23
+ # that support that parameter. Unsupported for GPT image models.
24
24
  #
25
25
  # @return [String, nil]
26
26
  optional :url, String
@@ -29,17 +29,17 @@ module OpenAI
29
29
  # Represents the content or the URL of an image generated by the OpenAI API.
30
30
  #
31
31
  # @param b64_json [String]
32
- # The base64-encoded JSON of the generated image. Returned by default for the GPT
33
- # image models, and only present if `response_format` is set to `b64_json` for
34
- # `dall-e-2` and `dall-e-3`.
32
+ # The base64-encoded JSON of the generated image. Returned by default for GPT
33
+ # image models, or when `response_format` is set to `b64_json` for models that
34
+ # support that parameter.
35
35
  #
36
36
  # @param revised_prompt [String]
37
- # For `dall-e-3` only, the revised prompt that was used to generate the image.
37
+ # The revised prompt used to generate the image, for models that support prompt
38
+ # revision. Not returned by GPT image models.
38
39
  #
39
40
  # @param url [String]
40
- # When using `dall-e-2` or `dall-e-3`, the URL of the generated image if
41
- # `response_format` is set to `url` (default value). Unsupported for the GPT image
42
- # models.
41
+ # The URL of the generated image when `response_format` is set to `url` for models
42
+ # that support that parameter. Unsupported for GPT image models.
43
43
  end
44
44
  end
45
45
  end
@@ -19,8 +19,8 @@ module OpenAI
19
19
  required :image, OpenAI::Internal::Type::FileInput
20
20
 
21
21
  # @!attribute model
22
- # The model to use for image generation. Only `dall-e-2` is supported at this
23
- # time.
22
+ # The legacy model used by the retired image variations endpoint. This endpoint no
23
+ # longer accepts requests.
24
24
  #
25
25
  # @return [String, Symbol, OpenAI::Models::ImageModel, nil]
26
26
  optional :model, union: -> { OpenAI::ImageCreateVariationParams::Model }, nil?: true
@@ -64,8 +64,8 @@ module OpenAI
64
64
  # content type.
65
65
  #
66
66
  # @param model [String, Symbol, OpenAI::Models::ImageModel, nil]
67
- # The model to use for image generation. Only `dall-e-2` is supported at this
68
- # time.
67
+ # The legacy model used by the retired image variations endpoint. This endpoint no
68
+ # longer accepts requests.
69
69
  #
70
70
  # @param n [Integer, nil]
71
71
  # The number of images to generate. Must be between 1 and 10.
@@ -86,14 +86,14 @@ module OpenAI
86
86
  #
87
87
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
88
88
 
89
- # The model to use for image generation. Only `dall-e-2` is supported at this
90
- # time.
89
+ # The legacy model used by the retired image variations endpoint. This endpoint no
90
+ # longer accepts requests.
91
91
  module Model
92
92
  extend OpenAI::Internal::Type::Union
93
93
 
94
94
  variant String
95
95
 
96
- # The model to use for image generation. Only `dall-e-2` is supported at this time.
96
+ # The legacy model used by the retired image variations endpoint. This endpoint no longer accepts requests.
97
97
  variant enum: -> { OpenAI::ImageModel }
98
98
 
99
99
  # @!method self.variants