You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Message: The call is ambiguous between the following methods or properties: 'ModelIds.ModelIds(ModelIdsShared?)' and 'ModelIds.ModelIds(ModelIdsResponses?)',
Message: The call is ambiguous between the following methods or properties: 'ModelIds.ModelIds(ModelIdsShared?)' and 'ModelIds.ModelIds(ModelIdsResponses?)',
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/openai/NewtonsoftJson/_#G.AudioClient.CreateSpeech.g.verified.cs
/// One of the available [TTS models](/docs/models#tts): `tts-1` or `tts-1-hd`
164
+
/// One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.
165
165
/// </param>
166
166
/// <param name="input">
167
167
/// The text to generate audio for. The maximum length is 4096 characters.
168
168
/// </param>
169
+
/// <param name="instructions">
170
+
/// Control the voice of your generated audio with additional instructions. Does not work with `tts-1` or `tts-1-hd`.
171
+
/// </param>
169
172
/// <param name="voice">
170
-
/// The voice to use when generating the audio. Supported voices are `alloy`, `ash`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage` and `shimmer`. Previews of the voices are available in the [Text to speech guide](/docs/guides/text-to-speech#voice-options).
173
+
/// Example: ash
171
174
/// </param>
172
175
/// <param name="responseFormat">
173
176
/// The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.<br/>
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/openai/NewtonsoftJson/_#G.AudioClient.CreateTranscription.g.verified.cs
content:newglobal::System.Net.Http.StringContent($"[{string.Join(",",global::System.Linq.Enumerable.Select(request.Include, x =>x.ToValueString()))}]"),
106
+
name:"include[]");
107
+
}
102
108
if(request.TimestampGranularities!=default)
103
109
{
104
110
__httpRequestContent.Add(
105
111
content:newglobal::System.Net.Http.StringContent($"[{string.Join(",",global::System.Linq.Enumerable.Select(request.TimestampGranularities, x =>x.ToValueString()))}]"),
/// The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
210
222
/// </param>
211
223
/// <param name="model">
212
-
/// ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available.<br/>
213
-
/// Example: whisper-1
224
+
/// ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).<br/>
225
+
/// Example: gpt-4o-transcribe
214
226
/// </param>
215
227
/// <param name="language">
216
228
/// The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format will improve accuracy and latency.
/// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language.
220
232
/// </param>
221
233
/// <param name="responseFormat">
222
-
/// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.<br/>
234
+
/// The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`.<br/>
223
235
/// Default Value: json
224
236
/// </param>
225
237
/// <param name="temperature">
226
238
/// The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.<br/>
227
239
/// Default Value: 0
228
240
/// </param>
241
+
/// <param name="include">
242
+
/// Additional information to include in the transcription response. <br/>
243
+
/// `logprobs` will return the log probabilities of the tokens in the <br/>
244
+
/// response to understand the model's confidence in the transcription. <br/>
245
+
/// `logprobs` only works with response_format set to `json` and only with <br/>
246
+
/// the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`.
247
+
/// </param>
229
248
/// <param name="timestampGranularities">
230
249
/// The timestamp granularities to populate for this transcription. `response_format` must be set `verbose_json` to use timestamp granularities. Either or both of these options are supported: `word`, or `segment`. Note: There is no additional latency for segment timestamps, but generating word timestamps incurs additional latency.<br/>
231
250
/// Default Value: [segment]
232
251
/// </param>
252
+
/// <param name="stream">
253
+
/// If set to true, the model response data will be streamed to the client<br/>
254
+
/// as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). <br/>
255
+
/// See the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)<br/>
256
+
/// for more information.<br/>
257
+
/// Note: Streaming is not supported for the `whisper-1` model and will be ignored.<br/>
258
+
/// Default Value: false
259
+
/// </param>
233
260
/// <param name="cancellationToken">The token to cancel the operation with</param>
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/openai/NewtonsoftJson/_#G.AudioClient.CreateTranslation.g.verified.cs
/// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.
176
176
/// </param>
177
177
/// <param name="endpoint">
178
-
/// The endpoint to be used for all requests in the batch. Currently `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
178
+
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
179
179
/// </param>
180
180
/// <param name="completionWindow">
181
181
/// The time frame within which the batch should be processed. Currently only `24h` is supported.
0 commit comments