Skip to content

Commit 88bcf3a

Browse files
feat(api): Config update for pakrym-stream-param
1 parent 3e2ca57 commit 88bcf3a

16 files changed

+617
-30
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: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fc64d7c2c8f51f750813375356c3f3fdfc7fc1b1b34f19c20a5410279d445d37.yml
3-
openapi_spec_hash: 618285fc70199ee32b9ebe4bf72f7e4c
4-
config_hash: 3b590818075ca4b54949578b97494525
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d4bcffecf0cdadf746faa6708ed1ec81fac451f9b857deabbab26f0a343b9314.yml
3+
openapi_spec_hash: 7c54a18b4381248bda7cc34c52142615
4+
config_hash: 2102e4b25bbcab5d32d5ffa5d34daa0c

src/openai/resources/beta/realtime/sessions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def with_streaming_response(self) -> SessionsWithStreamingResponse:
4343
def create(
4444
self,
4545
*,
46+
client_secret: session_create_params.ClientSecret | NotGiven = NOT_GIVEN,
4647
input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] | NotGiven = NOT_GIVEN,
4748
input_audio_noise_reduction: session_create_params.InputAudioNoiseReduction | NotGiven = NOT_GIVEN,
4849
input_audio_transcription: session_create_params.InputAudioTranscription | NotGiven = NOT_GIVEN,
@@ -83,6 +84,8 @@ def create(
8384
the Realtime API.
8485
8586
Args:
87+
client_secret: Configuration options for the generated client secret.
88+
8689
input_audio_format: The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
8790
`pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
8891
(mono), and little-endian byte order.
@@ -163,6 +166,7 @@ def create(
163166
"/realtime/sessions",
164167
body=maybe_transform(
165168
{
169+
"client_secret": client_secret,
166170
"input_audio_format": input_audio_format,
167171
"input_audio_noise_reduction": input_audio_noise_reduction,
168172
"input_audio_transcription": input_audio_transcription,
@@ -209,6 +213,7 @@ def with_streaming_response(self) -> AsyncSessionsWithStreamingResponse:
209213
async def create(
210214
self,
211215
*,
216+
client_secret: session_create_params.ClientSecret | NotGiven = NOT_GIVEN,
212217
input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] | NotGiven = NOT_GIVEN,
213218
input_audio_noise_reduction: session_create_params.InputAudioNoiseReduction | NotGiven = NOT_GIVEN,
214219
input_audio_transcription: session_create_params.InputAudioTranscription | NotGiven = NOT_GIVEN,
@@ -249,6 +254,8 @@ async def create(
249254
the Realtime API.
250255
251256
Args:
257+
client_secret: Configuration options for the generated client secret.
258+
252259
input_audio_format: The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
253260
`pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
254261
(mono), and little-endian byte order.
@@ -329,6 +336,7 @@ async def create(
329336
"/realtime/sessions",
330337
body=await async_maybe_transform(
331338
{
339+
"client_secret": client_secret,
332340
"input_audio_format": input_audio_format,
333341
"input_audio_noise_reduction": input_audio_noise_reduction,
334342
"input_audio_transcription": input_audio_transcription,

src/openai/resources/beta/realtime/transcription_sessions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def with_streaming_response(self) -> TranscriptionSessionsWithStreamingResponse:
4343
def create(
4444
self,
4545
*,
46+
client_secret: transcription_session_create_params.ClientSecret | NotGiven = NOT_GIVEN,
4647
include: List[str] | NotGiven = NOT_GIVEN,
4748
input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] | NotGiven = NOT_GIVEN,
4849
input_audio_noise_reduction: transcription_session_create_params.InputAudioNoiseReduction
@@ -67,6 +68,8 @@ def create(
6768
the Realtime API.
6869
6970
Args:
71+
client_secret: Configuration options for the generated client secret.
72+
7073
include:
7174
The set of items to include in the transcription. Current available items are:
7275
@@ -113,6 +116,7 @@ def create(
113116
"/realtime/transcription_sessions",
114117
body=maybe_transform(
115118
{
119+
"client_secret": client_secret,
116120
"include": include,
117121
"input_audio_format": input_audio_format,
118122
"input_audio_noise_reduction": input_audio_noise_reduction,
@@ -152,6 +156,7 @@ def with_streaming_response(self) -> AsyncTranscriptionSessionsWithStreamingResp
152156
async def create(
153157
self,
154158
*,
159+
client_secret: transcription_session_create_params.ClientSecret | NotGiven = NOT_GIVEN,
155160
include: List[str] | NotGiven = NOT_GIVEN,
156161
input_audio_format: Literal["pcm16", "g711_ulaw", "g711_alaw"] | NotGiven = NOT_GIVEN,
157162
input_audio_noise_reduction: transcription_session_create_params.InputAudioNoiseReduction
@@ -176,6 +181,8 @@ async def create(
176181
the Realtime API.
177182
178183
Args:
184+
client_secret: Configuration options for the generated client secret.
185+
179186
include:
180187
The set of items to include in the transcription. Current available items are:
181188
@@ -222,6 +229,7 @@ async def create(
222229
"/realtime/transcription_sessions",
223230
body=await async_maybe_transform(
224231
{
232+
"client_secret": client_secret,
225233
"include": include,
226234
"input_audio_format": input_audio_format,
227235
"input_audio_noise_reduction": input_audio_noise_reduction,

0 commit comments

Comments
 (0)