Skip to content

Commit 5627b41

Browse files
fix: rebuild
1 parent 27e30df commit 5627b41

File tree

10 files changed

+37
-18
lines changed

10 files changed

+37
-18
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

src/resources/audio/audio.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export type AudioModel =
4141
| 'whisper-1'
4242
| 'gpt-4o-transcribe'
4343
| 'gpt-4o-mini-transcribe'
44+
| 'gpt-4o-mini-transcribe-2025-12-15'
4445
| 'gpt-4o-transcribe-diarize';
4546

4647
/**

src/resources/audio/speech.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Speech extends APIResource {
3131
}
3232
}
3333

34-
export type SpeechModel = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts';
34+
export type SpeechModel = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts' | 'gpt-4o-mini-tts-2025-12-15';
3535

3636
export interface SpeechCreateParams {
3737
/**
@@ -41,7 +41,7 @@ export interface SpeechCreateParams {
4141

4242
/**
4343
* One of the available [TTS models](https://platform.openai.com/docs/models#tts):
44-
* `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
44+
* `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.
4545
*/
4646
model: (string & {}) | SpeechModel;
4747

src/resources/audio/transcriptions.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,9 @@ export interface TranscriptionCreateParamsBase<
642642

643643
/**
644644
* ID of the model to use. The options are `gpt-4o-transcribe`,
645-
* `gpt-4o-mini-transcribe`, `whisper-1` (which is powered by our open source
646-
* Whisper V2 model), and `gpt-4o-transcribe-diarize`.
645+
* `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1`
646+
* (which is powered by our open source Whisper V2 model), and
647+
* `gpt-4o-transcribe-diarize`.
647648
*/
648649
model: (string & {}) | AudioAPI.AudioModel;
649650

@@ -661,9 +662,9 @@ export interface TranscriptionCreateParamsBase<
661662
* Additional information to include in the transcription response. `logprobs` will
662663
* return the log probabilities of the tokens in the response to understand the
663664
* model's confidence in the transcription. `logprobs` only works with
664-
* response_format set to `json` and only with the models `gpt-4o-transcribe` and
665-
* `gpt-4o-mini-transcribe`. This field is not supported when using
666-
* `gpt-4o-transcribe-diarize`.
665+
* response_format set to `json` and only with the models `gpt-4o-transcribe`,
666+
* `gpt-4o-mini-transcribe`, and `gpt-4o-mini-transcribe-2025-12-15`. This field is
667+
* not supported when using `gpt-4o-transcribe-diarize`.
667668
*/
668669
include?: Array<TranscriptionInclude>;
669670

src/resources/realtime/calls.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ export interface CallAcceptParams {
138138
| 'gpt-4o-mini-realtime-preview-2024-12-17'
139139
| 'gpt-realtime-mini'
140140
| 'gpt-realtime-mini-2025-10-06'
141+
| 'gpt-realtime-mini-2025-12-15'
141142
| 'gpt-audio-mini'
142-
| 'gpt-audio-mini-2025-10-06';
143+
| 'gpt-audio-mini-2025-10-06'
144+
| 'gpt-audio-mini-2025-12-15';
143145

144146
/**
145147
* The set of modalities the model can respond with. It defaults to `["audio"]`,

src/resources/realtime/client-secrets.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ export interface RealtimeSessionCreateResponse {
105105
| 'gpt-4o-mini-realtime-preview-2024-12-17'
106106
| 'gpt-realtime-mini'
107107
| 'gpt-realtime-mini-2025-10-06'
108+
| 'gpt-realtime-mini-2025-12-15'
108109
| 'gpt-audio-mini'
109-
| 'gpt-audio-mini-2025-10-06';
110+
| 'gpt-audio-mini-2025-10-06'
111+
| 'gpt-audio-mini-2025-12-15';
110112

111113
/**
112114
* The set of modalities the model can respond with. It defaults to `["audio"]`,

src/resources/realtime/realtime.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,17 @@ export interface AudioTranscription {
3232

3333
/**
3434
* The model to use for transcription. Current options are `whisper-1`,
35-
* `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`.
36-
* Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
35+
* `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`,
36+
* `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`. Use
37+
* `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
3738
*/
38-
model?: 'whisper-1' | 'gpt-4o-mini-transcribe' | 'gpt-4o-transcribe' | 'gpt-4o-transcribe-diarize';
39+
model?:
40+
| (string & {})
41+
| 'whisper-1'
42+
| 'gpt-4o-mini-transcribe'
43+
| 'gpt-4o-mini-transcribe-2025-12-15'
44+
| 'gpt-4o-transcribe'
45+
| 'gpt-4o-transcribe-diarize';
3946

4047
/**
4148
* An optional text to guide the model's style or continue a previous audio
@@ -2752,6 +2759,7 @@ export interface RealtimeSession {
27522759
* The Realtime model used for this session.
27532760
*/
27542761
model?:
2762+
| (string & {})
27552763
| 'gpt-realtime'
27562764
| 'gpt-realtime-2025-08-28'
27572765
| 'gpt-4o-realtime-preview'
@@ -2762,8 +2770,10 @@ export interface RealtimeSession {
27622770
| 'gpt-4o-mini-realtime-preview-2024-12-17'
27632771
| 'gpt-realtime-mini'
27642772
| 'gpt-realtime-mini-2025-10-06'
2773+
| 'gpt-realtime-mini-2025-12-15'
27652774
| 'gpt-audio-mini'
2766-
| 'gpt-audio-mini-2025-10-06';
2775+
| 'gpt-audio-mini-2025-10-06'
2776+
| 'gpt-audio-mini-2025-12-15';
27672777

27682778
/**
27692779
* The object type. Always `realtime.session`.
@@ -3051,8 +3061,10 @@ export interface RealtimeSessionCreateRequest {
30513061
| 'gpt-4o-mini-realtime-preview-2024-12-17'
30523062
| 'gpt-realtime-mini'
30533063
| 'gpt-realtime-mini-2025-10-06'
3064+
| 'gpt-realtime-mini-2025-12-15'
30543065
| 'gpt-audio-mini'
3055-
| 'gpt-audio-mini-2025-10-06';
3066+
| 'gpt-audio-mini-2025-10-06'
3067+
| 'gpt-audio-mini-2025-12-15';
30563068

30573069
/**
30583070
* The set of modalities the model can respond with. It defaults to `["audio"]`,

src/resources/videos.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export interface VideoCreateError {
147147
}
148148

149149
export type VideoModel =
150+
| (string & {})
150151
| 'sora-2'
151152
| 'sora-2-pro'
152153
| 'sora-2-2025-10-06'

tests/api-resources/realtime/calls.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('resource calls', () => {
2626
input: {
2727
format: { rate: 24000, type: 'audio/pcm' },
2828
noise_reduction: { type: 'near_field' },
29-
transcription: { language: 'language', model: 'whisper-1', prompt: 'prompt' },
29+
transcription: { language: 'language', model: 'string', prompt: 'prompt' },
3030
turn_detection: {
3131
type: 'server_vad',
3232
create_response: true,

tests/api-resources/videos.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('resource videos', () => {
2323
const response = await client.videos.create({
2424
prompt: 'x',
2525
input_reference: await toFile(Buffer.from('# my file contents'), 'README.md'),
26-
model: 'sora-2',
26+
model: 'string',
2727
seconds: '4',
2828
size: '720x1280',
2929
});

0 commit comments

Comments
 (0)