@@ -229,6 +229,11 @@ public virtual AsyncCollectionResult<StreamingAudioTranscriptionUpdate> Transcri
229229 Argument . AssertNotNull ( audio , nameof ( audio ) ) ;
230230 Argument . AssertNotNullOrEmpty ( audioFilename , nameof ( audioFilename ) ) ;
231231
232+ if ( string . Equals ( _model , "whisper-1" , StringComparison . OrdinalIgnoreCase ) )
233+ {
234+ throw new NotSupportedException ( $ "The selected model { _model } does not support streaming transcription. Please use a compatible model.") ;
235+ }
236+
232237 MultiPartFormDataBinaryContent content
233238 = CreatePerCallTranscriptionOptions ( options , stream : true )
234239 . ToMultipartContent ( audio , audioFilename ) ;
@@ -245,6 +250,11 @@ public virtual AsyncCollectionResult<StreamingAudioTranscriptionUpdate> Transcri
245250 {
246251 Argument . AssertNotNullOrEmpty ( audioFilePath , nameof ( audioFilePath ) ) ;
247252
253+ if ( string . Equals ( _model , "whisper-1" , StringComparison . OrdinalIgnoreCase ) )
254+ {
255+ throw new NotSupportedException ( $ "The selected model { _model } does not support streaming transcription. Please use a compatible model.") ;
256+ }
257+
248258 FileStream inputStream = File . OpenRead ( audioFilePath ) ;
249259
250260 MultiPartFormDataBinaryContent content
@@ -266,6 +276,11 @@ public virtual CollectionResult<StreamingAudioTranscriptionUpdate> TranscribeAud
266276 Argument . AssertNotNull ( audio , nameof ( audio ) ) ;
267277 Argument . AssertNotNullOrEmpty ( audioFilename , nameof ( audioFilename ) ) ;
268278
279+ if ( string . Equals ( _model , "whisper-1" , StringComparison . OrdinalIgnoreCase ) )
280+ {
281+ throw new NotSupportedException ( $ "The selected model { _model } does not support streaming transcription. Please use a compatible model.") ;
282+ }
283+
269284 MultiPartFormDataBinaryContent content
270285 = CreatePerCallTranscriptionOptions ( options , stream : true )
271286 . ToMultipartContent ( audio , audioFilename ) ;
@@ -282,6 +297,11 @@ public virtual CollectionResult<StreamingAudioTranscriptionUpdate> TranscribeAud
282297 {
283298 Argument . AssertNotNullOrEmpty ( audioFilePath , nameof ( audioFilePath ) ) ;
284299
300+ if ( string . Equals ( _model , "whisper-1" , StringComparison . OrdinalIgnoreCase ) )
301+ {
302+ throw new NotSupportedException ( $ "The selected model { _model } does not support streaming transcription. Please use a compatible model.") ;
303+ }
304+
285305 FileStream inputStream = File . OpenRead ( audioFilePath ) ;
286306
287307 MultiPartFormDataBinaryContent content
0 commit comments