Skip to content

Commit 5da8c5f

Browse files
feat(api): add new Response completed_at prop
1 parent 032e6cb commit 5da8c5f

21 files changed

+80
-54
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 137
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-75926226b642ebb2cb415694da9dff35e8ab40145ac1b791cefb82a83809db4d.yml
3-
openapi_spec_hash: 6a0e391b0ba5747b6b4a3e5fe21de4da
4-
config_hash: adcf23ecf5f84d3cadf1d71e82ec636a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9442fa9212dd61aac2bb0edd19744bee381e75888712f9098bc6ebb92c52b557.yml
3+
openapi_spec_hash: f87823d164b7a8f72a42eba04e482a99
4+
config_hash: ad7136f7366fddec432ec378939e58a7

src/openai/resources/audio/speech.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ def create(
7474
One of the available [TTS models](https://platform.openai.com/docs/models#tts):
7575
`tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.
7676
77-
voice: The voice to use when generating the audio. Supported voices are `alloy`, `ash`,
78-
`ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and
79-
`verse`. Previews of the voices are available in the
77+
voice: The voice to use when generating the audio. Supported built-in voices are
78+
`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`,
79+
`shimmer`, `verse`, `marin`, and `cedar`. Previews of the voices are available
80+
in the
8081
[Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
8182
8283
instructions: Control the voice of your generated audio with additional instructions. Does not
@@ -170,9 +171,10 @@ async def create(
170171
One of the available [TTS models](https://platform.openai.com/docs/models#tts):
171172
`tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.
172173
173-
voice: The voice to use when generating the audio. Supported voices are `alloy`, `ash`,
174-
`ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and
175-
`verse`. Previews of the voices are available in the
174+
voice: The voice to use when generating the audio. Supported built-in voices are
175+
`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`,
176+
`shimmer`, `verse`, `marin`, and `cedar`. Previews of the voices are available
177+
in the
176178
[Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
177179
178180
instructions: Control the voice of your generated audio with additional instructions. Does not

src/openai/resources/images.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def edit(
146146
"""Creates an edited or extended image given one or more source images and a
147147
prompt.
148148
149-
This endpoint only supports `gpt-image-1` and `dall-e-2`.
149+
This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`,
150+
and `gpt-image-1-mini`) and `dall-e-2`.
150151
151152
Args:
152153
image: The image(s) to edit. Must be a supported image file or an array of images.
@@ -260,7 +261,8 @@ def edit(
260261
"""Creates an edited or extended image given one or more source images and a
261262
prompt.
262263
263-
This endpoint only supports `gpt-image-1` and `dall-e-2`.
264+
This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`,
265+
and `gpt-image-1-mini`) and `dall-e-2`.
264266
265267
Args:
266268
image: The image(s) to edit. Must be a supported image file or an array of images.
@@ -374,7 +376,8 @@ def edit(
374376
"""Creates an edited or extended image given one or more source images and a
375377
prompt.
376378
377-
This endpoint only supports `gpt-image-1` and `dall-e-2`.
379+
This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`,
380+
and `gpt-image-1-mini`) and `dall-e-2`.
378381
379382
Args:
380383
image: The image(s) to edit. Must be a supported image file or an array of images.
@@ -1039,7 +1042,8 @@ async def edit(
10391042
"""Creates an edited or extended image given one or more source images and a
10401043
prompt.
10411044
1042-
This endpoint only supports `gpt-image-1` and `dall-e-2`.
1045+
This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`,
1046+
and `gpt-image-1-mini`) and `dall-e-2`.
10431047
10441048
Args:
10451049
image: The image(s) to edit. Must be a supported image file or an array of images.
@@ -1153,7 +1157,8 @@ async def edit(
11531157
"""Creates an edited or extended image given one or more source images and a
11541158
prompt.
11551159
1156-
This endpoint only supports `gpt-image-1` and `dall-e-2`.
1160+
This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`,
1161+
and `gpt-image-1-mini`) and `dall-e-2`.
11571162
11581163
Args:
11591164
image: The image(s) to edit. Must be a supported image file or an array of images.
@@ -1267,7 +1272,8 @@ async def edit(
12671272
"""Creates an edited or extended image given one or more source images and a
12681273
prompt.
12691274
1270-
This endpoint only supports `gpt-image-1` and `dall-e-2`.
1275+
This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`,
1276+
and `gpt-image-1-mini`) and `dall-e-2`.
12711277
12721278
Args:
12731279
image: The image(s) to edit. Must be a supported image file or an array of images.

src/openai/resources/responses/input_tokens.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ def count(
102102
- [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
103103
- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
104104
105-
tool_choice: How the model should select which tool (or tools) to use when generating a
106-
response. See the `tools` parameter to see how to specify which tools the model
107-
can call.
105+
tool_choice: Controls which tool the model should use, if any.
108106
109107
tools: An array of tools the model may call while generating a response. You can
110108
specify which tool to use by setting the `tool_choice` parameter.
@@ -227,9 +225,7 @@ async def count(
227225
- [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
228226
- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
229227
230-
tool_choice: How the model should select which tool (or tools) to use when generating a
231-
response. See the `tools` parameter to see how to specify which tools the model
232-
can call.
228+
tool_choice: Controls which tool the model should use, if any.
233229
234230
tools: An array of tools the model may call while generating a response. You can
235231
specify which tool to use by setting the `tool_choice` parameter.

src/openai/types/audio/speech_create_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class SpeechCreateParams(TypedDict, total=False):
2525
]
2626
"""The voice to use when generating the audio.
2727
28-
Supported voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`,
29-
`nova`, `sage`, `shimmer`, and `verse`. Previews of the voices are available in
30-
the
28+
Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`,
29+
`fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`.
30+
Previews of the voices are available in the
3131
[Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
3232
"""
3333

src/openai/types/chat/chat_completion_audio_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ class ChatCompletionAudioParam(TypedDict, total=False):
2626
]
2727
"""The voice the model uses to respond.
2828
29-
Supported voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`,
30-
`onyx`, `sage`, and `shimmer`.
29+
Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`,
30+
`fable`, `nova`, `onyx`, `sage`, `shimmer`, `marin`, and `cedar`.
3131
"""

src/openai/types/realtime/realtime_audio_config_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class RealtimeAudioConfigOutput(BaseModel):
2929
] = None
3030
"""The voice the model uses to respond.
3131
32-
Voice cannot be changed during the session once the model has responded with
33-
audio at least once. Current voice options are `alloy`, `ash`, `ballad`,
34-
`coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. We recommend
32+
Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`,
33+
`shimmer`, `verse`, `marin`, and `cedar`. Voice cannot be changed during the
34+
session once the model has responded with audio at least once. We recommend
3535
`marin` and `cedar` for best quality.
3636
"""

src/openai/types/realtime/realtime_audio_config_output_param.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class RealtimeAudioConfigOutputParam(TypedDict, total=False):
2828
voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"]]
2929
"""The voice the model uses to respond.
3030
31-
Voice cannot be changed during the session once the model has responded with
32-
audio at least once. Current voice options are `alloy`, `ash`, `ballad`,
33-
`coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. We recommend
31+
Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`,
32+
`shimmer`, `verse`, `marin`, and `cedar`. Voice cannot be changed during the
33+
session once the model has responded with audio at least once. We recommend
3434
`marin` and `cedar` for best quality.
3535
"""

src/openai/types/realtime/realtime_response_create_audio_output.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ class Output(BaseModel):
1818
] = None
1919
"""The voice the model uses to respond.
2020
21-
Voice cannot be changed during the session once the model has responded with
22-
audio at least once. Current voice options are `alloy`, `ash`, `ballad`,
23-
`coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. We recommend
24-
`marin` and `cedar` for best quality.
21+
Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`,
22+
`shimmer`, `verse`, `marin`, and `cedar`. Voice cannot be changed during the
23+
session once the model has responded with audio at least once.
2524
"""
2625

2726

src/openai/types/realtime/realtime_response_create_audio_output_param.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ class Output(TypedDict, total=False):
1717
voice: Union[str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"]]
1818
"""The voice the model uses to respond.
1919
20-
Voice cannot be changed during the session once the model has responded with
21-
audio at least once. Current voice options are `alloy`, `ash`, `ballad`,
22-
`coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. We recommend
23-
`marin` and `cedar` for best quality.
20+
Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`,
21+
`shimmer`, `verse`, `marin`, and `cedar`. Voice cannot be changed during the
22+
session once the model has responded with audio at least once.
2423
"""
2524

2625

0 commit comments

Comments
 (0)