Skip to content

Commit b41dc9a

Browse files
fix: rebuild
1 parent 00e4bd4 commit b41dc9a

34 files changed

+346
-124
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 136
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-235aa1c75c6cc178b97d074a4671343469f458c4a306ef7beb4e45ab252aa589.yml
3-
openapi_spec_hash: 6e615d34cf8c6bc76e0c6933fc8569af
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-75926226b642ebb2cb415694da9dff35e8ab40145ac1b791cefb82a83809db4d.yml
3+
openapi_spec_hash: 6a0e391b0ba5747b6b4a3e5fe21de4da
44
config_hash: c028ce402ef5f71da947c3f15bf6046d

lib/openai/models/audio/speech_create_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SpeechCreateParams < OpenAI::Internal::Type::BaseModel
1616

1717
# @!attribute model
1818
# One of the available [TTS models](https://platform.openai.com/docs/models#tts):
19-
# `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
19+
# `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.
2020
#
2121
# @return [String, Symbol, OpenAI::Models::Audio::SpeechModel]
2222
required :model, union: -> { OpenAI::Audio::SpeechCreateParams::Model }
@@ -79,13 +79,13 @@ class SpeechCreateParams < OpenAI::Internal::Type::BaseModel
7979
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
8080

8181
# One of the available [TTS models](https://platform.openai.com/docs/models#tts):
82-
# `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
82+
# `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.
8383
module Model
8484
extend OpenAI::Internal::Type::Union
8585

8686
variant String
8787

88-
# One of the available [TTS models](https://platform.openai.com/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
88+
# One of the available [TTS models](https://platform.openai.com/docs/models#tts): `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.
8989
variant enum: -> { OpenAI::Audio::SpeechModel }
9090

9191
# @!method self.variants

lib/openai/models/audio/speech_model.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module SpeechModel
99
TTS_1 = :"tts-1"
1010
TTS_1_HD = :"tts-1-hd"
1111
GPT_4O_MINI_TTS = :"gpt-4o-mini-tts"
12+
GPT_4O_MINI_TTS_2025_12_15 = :"gpt-4o-mini-tts-2025-12-15"
1213

1314
# @!method self.values
1415
# @return [Array<Symbol>]

lib/openai/models/audio/transcription_create_params.rb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
1919

2020
# @!attribute model
2121
# ID of the model to use. The options are `gpt-4o-transcribe`,
22-
# `gpt-4o-mini-transcribe`, `whisper-1` (which is powered by our open source
23-
# Whisper V2 model), and `gpt-4o-transcribe-diarize`.
22+
# `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
23+
# (which is powered by our open source Whisper V2 model), and
24+
# `gpt-4o-transcribe-diarize`.
2425
#
2526
# @return [String, Symbol, OpenAI::Models::AudioModel]
2627
required :model, union: -> { OpenAI::Audio::TranscriptionCreateParams::Model }
@@ -42,9 +43,9 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
4243
# Additional information to include in the transcription response. `logprobs` will
4344
# return the log probabilities of the tokens in the response to understand the
4445
# model's confidence in the transcription. `logprobs` only works with
45-
# response_format set to `json` and only with the models `gpt-4o-transcribe` and
46-
# `gpt-4o-mini-transcribe`. This field is not supported when using
47-
# `gpt-4o-transcribe-diarize`.
46+
# response_format set to `json` and only with the models `gpt-4o-transcribe`,
47+
# `gpt-4o-mini-transcribe`, and `gpt-4o-mini-transcribe-2025-12-15`. This field is
48+
# not supported when using `gpt-4o-transcribe-diarize`.
4849
#
4950
# @return [Array<Symbol, OpenAI::Models::Audio::TranscriptionInclude>, nil]
5051
optional :include, -> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Audio::TranscriptionInclude] }
@@ -146,14 +147,15 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
146147
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
147148

148149
# ID of the model to use. The options are `gpt-4o-transcribe`,
149-
# `gpt-4o-mini-transcribe`, `whisper-1` (which is powered by our open source
150-
# Whisper V2 model), and `gpt-4o-transcribe-diarize`.
150+
# `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
151+
# (which is powered by our open source Whisper V2 model), and
152+
# `gpt-4o-transcribe-diarize`.
151153
module Model
152154
extend OpenAI::Internal::Type::Union
153155

154156
variant String
155157

156-
# ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.
158+
# ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.
157159
variant enum: -> { OpenAI::AudioModel }
158160

159161
# @!method self.variants

lib/openai/models/audio_model.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module AudioModel
88
WHISPER_1 = :"whisper-1"
99
GPT_4O_TRANSCRIBE = :"gpt-4o-transcribe"
1010
GPT_4O_MINI_TRANSCRIBE = :"gpt-4o-mini-transcribe"
11+
GPT_4O_MINI_TRANSCRIBE_2025_12_15 = :"gpt-4o-mini-transcribe-2025-12-15"
1112
GPT_4O_TRANSCRIBE_DIARIZE = :"gpt-4o-transcribe-diarize"
1213

1314
# @!method self.values

lib/openai/models/realtime/audio_transcription.rb

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ class AudioTranscription < OpenAI::Internal::Type::BaseModel
1414

1515
# @!attribute model
1616
# The model to use for transcription. Current options are `whisper-1`,
17-
# `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`.
18-
# Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
17+
# `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`,
18+
# `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`. Use
19+
# `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
1920
#
20-
# @return [Symbol, OpenAI::Models::Realtime::AudioTranscription::Model, nil]
21-
optional :model, enum: -> { OpenAI::Realtime::AudioTranscription::Model }
21+
# @return [String, Symbol, OpenAI::Models::Realtime::AudioTranscription::Model, nil]
22+
optional :model, union: -> { OpenAI::Realtime::AudioTranscription::Model }
2223

2324
# @!attribute prompt
2425
# An optional text to guide the model's style or continue a previous audio
@@ -36,25 +37,47 @@ class AudioTranscription < OpenAI::Internal::Type::BaseModel
3637
#
3738
# @param language [String] The language of the input audio. Supplying the input language in
3839
#
39-
# @param model [Symbol, OpenAI::Models::Realtime::AudioTranscription::Model] The model to use for transcription. Current options are `whisper-1`, `gpt-4o-min
40+
# @param model [String, Symbol, OpenAI::Models::Realtime::AudioTranscription::Model] The model to use for transcription. Current options are `whisper-1`, `gpt-4o-min
4041
#
4142
# @param prompt [String] An optional text to guide the model's style or continue a previous audio
4243

4344
# The model to use for transcription. Current options are `whisper-1`,
44-
# `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`.
45-
# Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
45+
# `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`,
46+
# `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`. Use
47+
# `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
4648
#
4749
# @see OpenAI::Models::Realtime::AudioTranscription#model
4850
module Model
49-
extend OpenAI::Internal::Type::Enum
51+
extend OpenAI::Internal::Type::Union
52+
53+
variant String
54+
55+
variant const: -> { OpenAI::Models::Realtime::AudioTranscription::Model::WHISPER_1 }
56+
57+
variant const: -> { OpenAI::Models::Realtime::AudioTranscription::Model::GPT_4O_MINI_TRANSCRIBE }
58+
59+
variant const: -> { OpenAI::Models::Realtime::AudioTranscription::Model::GPT_4O_MINI_TRANSCRIBE_2025_12_15 }
60+
61+
variant const: -> { OpenAI::Models::Realtime::AudioTranscription::Model::GPT_4O_TRANSCRIBE }
62+
63+
variant const: -> { OpenAI::Models::Realtime::AudioTranscription::Model::GPT_4O_TRANSCRIBE_DIARIZE }
64+
65+
# @!method self.variants
66+
# @return [Array(String, Symbol)]
67+
68+
define_sorbet_constant!(:Variants) do
69+
T.type_alias { T.any(String, OpenAI::Realtime::AudioTranscription::Model::TaggedSymbol) }
70+
end
71+
72+
# @!group
5073

5174
WHISPER_1 = :"whisper-1"
5275
GPT_4O_MINI_TRANSCRIBE = :"gpt-4o-mini-transcribe"
76+
GPT_4O_MINI_TRANSCRIBE_2025_12_15 = :"gpt-4o-mini-transcribe-2025-12-15"
5377
GPT_4O_TRANSCRIBE = :"gpt-4o-transcribe"
5478
GPT_4O_TRANSCRIBE_DIARIZE = :"gpt-4o-transcribe-diarize"
5579

56-
# @!method self.values
57-
# @return [Array<Symbol>]
80+
# @!endgroup
5881
end
5982
end
6083
end

lib/openai/models/realtime/realtime_session.rb

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class RealtimeSession < OpenAI::Internal::Type::BaseModel
9494
# @!attribute model
9595
# The Realtime model used for this session.
9696
#
97-
# @return [Symbol, OpenAI::Models::Realtime::RealtimeSession::Model, nil]
98-
optional :model, enum: -> { OpenAI::Realtime::RealtimeSession::Model }
97+
# @return [String, Symbol, OpenAI::Models::Realtime::RealtimeSession::Model, nil]
98+
optional :model, union: -> { OpenAI::Realtime::RealtimeSession::Model }
9999

100100
# @!attribute object
101101
# The object type. Always `realtime.session`.
@@ -205,7 +205,7 @@ class RealtimeSession < OpenAI::Internal::Type::BaseModel
205205
#
206206
# @param modalities [Array<Symbol, OpenAI::Models::Realtime::RealtimeSession::Modality>] The set of modalities the model can respond with. To disable audio,
207207
#
208-
# @param model [Symbol, OpenAI::Models::Realtime::RealtimeSession::Model] The Realtime model used for this session.
208+
# @param model [String, Symbol, OpenAI::Models::Realtime::RealtimeSession::Model] The Realtime model used for this session.
209209
#
210210
# @param object [Symbol, OpenAI::Models::Realtime::RealtimeSession::Object] The object type. Always `realtime.session`.
211211
#
@@ -306,7 +306,46 @@ module Modality
306306
#
307307
# @see OpenAI::Models::Realtime::RealtimeSession#model
308308
module Model
309-
extend OpenAI::Internal::Type::Enum
309+
extend OpenAI::Internal::Type::Union
310+
311+
variant String
312+
313+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_REALTIME }
314+
315+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_REALTIME_2025_08_28 }
316+
317+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_4O_REALTIME_PREVIEW }
318+
319+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_4O_REALTIME_PREVIEW_2024_10_01 }
320+
321+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_4O_REALTIME_PREVIEW_2024_12_17 }
322+
323+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_4O_REALTIME_PREVIEW_2025_06_03 }
324+
325+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_4O_MINI_REALTIME_PREVIEW }
326+
327+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_4O_MINI_REALTIME_PREVIEW_2024_12_17 }
328+
329+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_REALTIME_MINI }
330+
331+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_REALTIME_MINI_2025_10_06 }
332+
333+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_REALTIME_MINI_2025_12_15 }
334+
335+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_AUDIO_MINI }
336+
337+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_AUDIO_MINI_2025_10_06 }
338+
339+
variant const: -> { OpenAI::Models::Realtime::RealtimeSession::Model::GPT_AUDIO_MINI_2025_12_15 }
340+
341+
# @!method self.variants
342+
# @return [Array(String, Symbol)]
343+
344+
define_sorbet_constant!(:Variants) do
345+
T.type_alias { T.any(String, OpenAI::Realtime::RealtimeSession::Model::TaggedSymbol) }
346+
end
347+
348+
# @!group
310349

311350
GPT_REALTIME = :"gpt-realtime"
312351
GPT_REALTIME_2025_08_28 = :"gpt-realtime-2025-08-28"
@@ -318,11 +357,12 @@ module Model
318357
GPT_4O_MINI_REALTIME_PREVIEW_2024_12_17 = :"gpt-4o-mini-realtime-preview-2024-12-17"
319358
GPT_REALTIME_MINI = :"gpt-realtime-mini"
320359
GPT_REALTIME_MINI_2025_10_06 = :"gpt-realtime-mini-2025-10-06"
360+
GPT_REALTIME_MINI_2025_12_15 = :"gpt-realtime-mini-2025-12-15"
321361
GPT_AUDIO_MINI = :"gpt-audio-mini"
322362
GPT_AUDIO_MINI_2025_10_06 = :"gpt-audio-mini-2025-10-06"
363+
GPT_AUDIO_MINI_2025_12_15 = :"gpt-audio-mini-2025-12-15"
323364

324-
# @!method self.values
325-
# @return [Array<Symbol>]
365+
# @!endgroup
326366
end
327367

328368
# The object type. Always `realtime.session`.

lib/openai/models/realtime/realtime_session_create_request.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,14 @@ module Model
203203

204204
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateRequest::Model::GPT_REALTIME_MINI_2025_10_06 }
205205

206+
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateRequest::Model::GPT_REALTIME_MINI_2025_12_15 }
207+
206208
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateRequest::Model::GPT_AUDIO_MINI }
207209

208210
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateRequest::Model::GPT_AUDIO_MINI_2025_10_06 }
209211

212+
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateRequest::Model::GPT_AUDIO_MINI_2025_12_15 }
213+
210214
# @!method self.variants
211215
# @return [Array(String, Symbol)]
212216

@@ -226,8 +230,10 @@ module Model
226230
GPT_4O_MINI_REALTIME_PREVIEW_2024_12_17 = :"gpt-4o-mini-realtime-preview-2024-12-17"
227231
GPT_REALTIME_MINI = :"gpt-realtime-mini"
228232
GPT_REALTIME_MINI_2025_10_06 = :"gpt-realtime-mini-2025-10-06"
233+
GPT_REALTIME_MINI_2025_12_15 = :"gpt-realtime-mini-2025-12-15"
229234
GPT_AUDIO_MINI = :"gpt-audio-mini"
230235
GPT_AUDIO_MINI_2025_10_06 = :"gpt-audio-mini-2025-10-06"
236+
GPT_AUDIO_MINI_2025_12_15 = :"gpt-audio-mini-2025-12-15"
231237

232238
# @!endgroup
233239
end

lib/openai/models/realtime/realtime_session_create_response.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,14 @@ module Model
612612

613613
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Model::GPT_REALTIME_MINI_2025_10_06 }
614614

615+
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Model::GPT_REALTIME_MINI_2025_12_15 }
616+
615617
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Model::GPT_AUDIO_MINI }
616618

617619
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Model::GPT_AUDIO_MINI_2025_10_06 }
618620

621+
variant const: -> { OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Model::GPT_AUDIO_MINI_2025_12_15 }
622+
619623
# @!method self.variants
620624
# @return [Array(String, Symbol)]
621625

@@ -635,8 +639,10 @@ module Model
635639
GPT_4O_MINI_REALTIME_PREVIEW_2024_12_17 = :"gpt-4o-mini-realtime-preview-2024-12-17"
636640
GPT_REALTIME_MINI = :"gpt-realtime-mini"
637641
GPT_REALTIME_MINI_2025_10_06 = :"gpt-realtime-mini-2025-10-06"
642+
GPT_REALTIME_MINI_2025_12_15 = :"gpt-realtime-mini-2025-12-15"
638643
GPT_AUDIO_MINI = :"gpt-audio-mini"
639644
GPT_AUDIO_MINI_2025_10_06 = :"gpt-audio-mini-2025-10-06"
645+
GPT_AUDIO_MINI_2025_12_15 = :"gpt-audio-mini-2025-12-15"
640646

641647
# @!endgroup
642648
end

lib/openai/models/video.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class Video < OpenAI::Internal::Type::BaseModel
3737
# @!attribute model
3838
# The video generation model that produced the job.
3939
#
40-
# @return [Symbol, OpenAI::Models::VideoModel]
41-
required :model, enum: -> { OpenAI::VideoModel }
40+
# @return [String, Symbol, OpenAI::Models::VideoModel]
41+
required :model, union: -> { OpenAI::VideoModel }
4242

4343
# @!attribute object
4444
# The object type, which is always `video`.
@@ -95,7 +95,7 @@ class Video < OpenAI::Internal::Type::BaseModel
9595
#
9696
# @param expires_at [Integer, nil] Unix timestamp (seconds) for when the downloadable assets expire, if set.
9797
#
98-
# @param model [Symbol, OpenAI::Models::VideoModel] The video generation model that produced the job.
98+
# @param model [String, Symbol, OpenAI::Models::VideoModel] The video generation model that produced the job.
9999
#
100100
# @param progress [Integer] Approximate completion percentage for the generation task.
101101
#

0 commit comments

Comments
 (0)