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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/openai/models/admin/organization/usage_audio_speeches_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_completions_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_costs_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_embeddings_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_file_search_calls_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_images_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_moderations_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_vector_stores_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_web_search_calls_response.rb +16 -3
- data/lib/openai/models/all_models.rb +42 -0
- data/lib/openai/models/audio/speech_create_params.rb +6 -0
- data/lib/openai/models/audio/voice.rb +75 -0
- data/lib/openai/models/audio/voice_create_params.rb +217 -0
- data/lib/openai/models/beta/agent_create_params.rb +0 -3
- data/lib/openai/models/beta/agent_update_params.rb +0 -3
- data/lib/openai/models/beta/agents/session_create_params.rb +0 -3
- data/lib/openai/models/beta/agents/session_update_params.rb +0 -3
- data/lib/openai/models/beta/beta_response.rb +220 -0
- data/lib/openai/models/beta/beta_responses_client_event.rb +220 -0
- data/lib/openai/models/beta/beta_tool.rb +3 -9
- data/lib/openai/models/beta/response_compact_params.rb +220 -0
- data/lib/openai/models/beta/response_create_params.rb +220 -0
- data/lib/openai/models/chat/chat_completion_audio_param.rb +6 -3
- data/lib/openai/models/chat_model.rb +178 -0
- data/lib/openai/models/image.rb +14 -14
- data/lib/openai/models/image_create_variation_params.rb +7 -7
- data/lib/openai/models/image_edit_params.rb +76 -87
- data/lib/openai/models/image_generate_params.rb +51 -62
- data/lib/openai/models/image_model.rb +5 -3
- data/lib/openai/models/realtime/realtime_audio_config_output.rb +9 -6
- data/lib/openai/models/realtime/realtime_response_create_audio_output.rb +9 -6
- data/lib/openai/models/responses/response_compact_params.rb +220 -0
- data/lib/openai/models/responses/tool.rb +3 -9
- data/lib/openai/models/responses_model.rb +42 -0
- data/lib/openai/models/webhooks/agent_session_action_required_webhook_event.rb +109 -0
- data/lib/openai/models/webhooks/agent_session_created_webhook_event.rb +106 -0
- data/lib/openai/models/webhooks/agent_session_failed_webhook_event.rb +86 -0
- data/lib/openai/models/webhooks/agent_session_idle_webhook_event.rb +86 -0
- data/lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb +86 -0
- data/lib/openai/models/webhooks/unwrap_webhook_event.rb +18 -2
- data/lib/openai/models/webhooks/webhook_create_params.rb +5 -0
- data/lib/openai/models/webhooks/webhook_test_params.rb +5 -0
- data/lib/openai/models/webhooks/webhook_update_params.rb +5 -0
- data/lib/openai/resources/audio/speech.rb +2 -0
- data/lib/openai/resources/audio/voices.rb +53 -0
- data/lib/openai/resources/audio.rb +5 -0
- data/lib/openai/resources/images.rb +71 -103
- data/lib/openai/resources/webhooks.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +8 -0
- data/rbi/openai/models/admin/organization/usage_audio_speeches_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_audio_transcriptions_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_completions_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_costs_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_embeddings_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_file_search_calls_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_images_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_moderations_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_vector_stores_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_web_search_calls_response.rbi +19 -2
- data/rbi/openai/models/audio/speech_create_params.rbi +6 -0
- data/rbi/openai/models/audio/voice.rbi +111 -0
- data/rbi/openai/models/audio/voice_create_params.rbi +321 -0
- data/rbi/openai/models/beta/agent_create_params.rbi +0 -3
- data/rbi/openai/models/beta/agent_update_params.rbi +0 -3
- data/rbi/openai/models/beta/agents/session_create_params.rbi +0 -3
- data/rbi/openai/models/beta/agents/session_update_params.rbi +0 -3
- data/rbi/openai/models/beta/beta_tool.rbi +3 -9
- data/rbi/openai/models/chat/chat_completion_audio_param.rbi +6 -3
- data/rbi/openai/models/image.rbi +14 -14
- data/rbi/openai/models/image_create_variation_params.rbi +6 -6
- data/rbi/openai/models/image_edit_params.rbi +61 -82
- data/rbi/openai/models/image_generate_params.rbi +30 -61
- data/rbi/openai/models/image_model.rbi +3 -3
- data/rbi/openai/models/realtime/realtime_audio_config_output.rbi +9 -6
- data/rbi/openai/models/realtime/realtime_response_create_audio_output.rbi +9 -6
- data/rbi/openai/models/responses/tool.rbi +3 -9
- data/rbi/openai/models/webhooks/agent_session_action_required_webhook_event.rbi +222 -0
- data/rbi/openai/models/webhooks/agent_session_created_webhook_event.rbi +202 -0
- data/rbi/openai/models/webhooks/agent_session_failed_webhook_event.rbi +151 -0
- data/rbi/openai/models/webhooks/agent_session_idle_webhook_event.rbi +151 -0
- data/rbi/openai/models/webhooks/agent_session_in_progress_webhook_event.rbi +151 -0
- data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +7 -1
- data/rbi/openai/models/webhooks/webhook_create_params.rbi +20 -0
- data/rbi/openai/models/webhooks/webhook_test_params.rbi +20 -0
- data/rbi/openai/models/webhooks/webhook_update_params.rbi +20 -0
- data/rbi/openai/resources/audio/speech.rbi +2 -0
- data/rbi/openai/resources/audio/voices.rbi +49 -0
- data/rbi/openai/resources/audio.rbi +4 -0
- data/rbi/openai/resources/images.rbi +69 -103
- data/rbi/openai/resources/webhooks.rbi +5 -0
- data/sig/openai/models/admin/organization/usage_audio_speeches_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_completions_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_costs_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_embeddings_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_file_search_calls_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_images_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_moderations_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_vector_stores_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_web_search_calls_response.rbs +20 -3
- data/sig/openai/models/audio/speech_create_params.rbs +4 -0
- data/sig/openai/models/audio/voice.rbs +70 -0
- data/sig/openai/models/audio/voice_create_params.rbs +203 -0
- data/sig/openai/models/beta/agent_create_params.rbs +1 -5
- data/sig/openai/models/beta/agent_update_params.rbs +1 -5
- data/sig/openai/models/beta/agents/session_create_params.rbs +1 -5
- data/sig/openai/models/beta/agents/session_update_params.rbs +1 -5
- data/sig/openai/models/beta/beta_tool.rbs +3 -9
- data/sig/openai/models/chat/chat_completion_audio_param.rbs +4 -2
- data/sig/openai/models/image.rbs +21 -21
- data/sig/openai/models/image_create_variation_params.rbs +4 -4
- data/sig/openai/models/image_edit_params.rbs +46 -60
- data/sig/openai/models/image_generate_params.rbs +23 -45
- data/sig/openai/models/image_model.rbs +6 -6
- data/sig/openai/models/realtime/realtime_audio_config_output.rbs +9 -6
- data/sig/openai/models/realtime/realtime_response_create_audio_output.rbs +9 -6
- data/sig/openai/models/responses/tool.rbs +3 -9
- data/sig/openai/models/webhooks/agent_session_action_required_webhook_event.rbs +114 -0
- data/sig/openai/models/webhooks/agent_session_created_webhook_event.rbs +115 -0
- data/sig/openai/models/webhooks/agent_session_failed_webhook_event.rbs +89 -0
- data/sig/openai/models/webhooks/agent_session_idle_webhook_event.rbs +89 -0
- data/sig/openai/models/webhooks/agent_session_in_progress_webhook_event.rbs +89 -0
- data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +6 -1
- data/sig/openai/models/webhooks/webhook_create_params.rbs +10 -0
- data/sig/openai/models/webhooks/webhook_test_params.rbs +10 -0
- data/sig/openai/models/webhooks/webhook_update_params.rbs +10 -0
- data/sig/openai/resources/audio/voices.rbs +14 -0
- data/sig/openai/resources/audio.rbs +2 -0
- data/sig/openai/resources/webhooks.rbs +6 -1
- 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
|
data/lib/openai/models/image.rb
CHANGED
|
@@ -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
|
|
8
|
-
# image models,
|
|
9
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
22
|
-
#
|
|
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
|
|
33
|
-
# image models,
|
|
34
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
41
|
-
#
|
|
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
|
|
23
|
-
#
|
|
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
|
|
68
|
-
#
|
|
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
|
|
90
|
-
#
|
|
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
|
|
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
|