@@ -164,6 +164,23 @@ public static StreamingAudioTranscriptionTextDoneUpdate StreamingAudioTranscript
164164 return new StreamingAudioTranscriptionTextDoneUpdate ( StreamingAudioTranscriptionUpdateKind . TranscriptTextDone , additionalBinaryDataProperties : null , text , transcriptionTokenLogProbabilities . ToList ( ) ) ;
165165 }
166166
167+ public static AudioTranscription AudioTranscription ( string task = default , string language = default , TimeSpan ? duration = default , string text = default , IEnumerable < TranscribedWord > words = default , IEnumerable < TranscribedSegment > segments = default , IEnumerable < AudioTokenLogProbabilityDetails > transcriptionTokenLogProbabilities = default )
168+ {
169+ words ??= new ChangeTrackingList < TranscribedWord > ( ) ;
170+ segments ??= new ChangeTrackingList < TranscribedSegment > ( ) ;
171+ transcriptionTokenLogProbabilities ??= new ChangeTrackingList < AudioTokenLogProbabilityDetails > ( ) ;
172+
173+ return new AudioTranscription (
174+ task ,
175+ language ,
176+ duration ,
177+ text ,
178+ words . ToList ( ) ,
179+ segments . ToList ( ) ,
180+ transcriptionTokenLogProbabilities . ToList ( ) ,
181+ additionalBinaryDataProperties : null ) ;
182+ }
183+
167184 public static AudioTranslation AudioTranslation ( string task = default , string language = default , TimeSpan ? duration = default , string text = default , IEnumerable < TranscribedSegment > segments = default )
168185 {
169186 segments ??= new ChangeTrackingList < TranscribedSegment > ( ) ;
@@ -1271,23 +1288,6 @@ public static RunStepCollectionOptions RunStepCollectionOptions(string afterId =
12711288 return new RunStepCollectionOptions ( afterId , beforeId , pageSizeLimit , order , additionalBinaryDataProperties : null ) ;
12721289 }
12731290
1274- public static AudioTranscription AudioTranscription ( string task = default , string language = default , TimeSpan ? duration = default , string text = default , IEnumerable < TranscribedWord > words = default , IEnumerable < TranscribedSegment > segments = default , IEnumerable < AudioTokenLogProbabilityDetails > transcriptionTokenLogProbabilities = default )
1275- {
1276- words ??= new ChangeTrackingList < TranscribedWord > ( ) ;
1277- segments ??= new ChangeTrackingList < TranscribedSegment > ( ) ;
1278- transcriptionTokenLogProbabilities ??= new ChangeTrackingList < AudioTokenLogProbabilityDetails > ( ) ;
1279-
1280- return new AudioTranscription (
1281- task ,
1282- language ,
1283- duration ,
1284- text ,
1285- words . ToList ( ) ,
1286- segments . ToList ( ) ,
1287- transcriptionTokenLogProbabilities . ToList ( ) ,
1288- additionalBinaryDataProperties : null ) ;
1289- }
1290-
12911291 public static ChatCompletionCollectionOptions ChatCompletionCollectionOptions ( string afterId = default , int ? pageSizeLimit = default , ChatCompletionCollectionOrder ? order = default , IDictionary < string , string > metadata = default , string model = default )
12921292 {
12931293 metadata ??= new ChangeTrackingDictionary < string , string > ( ) ;
0 commit comments