@@ -1088,6 +1088,12 @@ public enum GeneratedSpeechVoice {
10881088 Nova = 4 ,
10891089 Shimmer = 5
10901090 }
1091+ public static class OpenAIAudioModelFactory {
1092+ public static AudioTranscription AudioTranscription ( string language = null , TimeSpan ? duration = null , string text = null , IEnumerable < TranscribedWord > words = null , IEnumerable < TranscribedSegment > segments = null ) ;
1093+ public static AudioTranslation AudioTranslation ( string language = null , TimeSpan ? duration = null , string text = null , IEnumerable < TranscribedSegment > segments = null ) ;
1094+ public static TranscribedSegment TranscribedSegment ( int id = 0 , long seekOffset = 0 , TimeSpan start = default , TimeSpan end = default , string text = null , IEnumerable < long > tokenIds = null , float temperature = 0 , double averageLogProbability = 0 , float compressionRatio = 0 , double noSpeechProbability = 0 ) ;
1095+ public static TranscribedWord TranscribedWord ( string word = null , TimeSpan start = default , TimeSpan end = default ) ;
1096+ }
10911097 public class SpeechGenerationOptions : IJsonModel < SpeechGenerationOptions > , IPersistableModel < SpeechGenerationOptions > {
10921098 public GeneratedSpeechFormat ? ResponseFormat { get ; set ; }
10931099 public float ? Speed { get ; set ; }
@@ -1593,6 +1599,11 @@ public class EmbeddingTokenUsage : IJsonModel<EmbeddingTokenUsage>, IPersistable
15931599 string IPersistableModel < EmbeddingTokenUsage > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
15941600 BinaryData IPersistableModel < EmbeddingTokenUsage > . Write ( ModelReaderWriterOptions options ) ;
15951601 }
1602+ public static class OpenAIEmbeddingsModelFactory {
1603+ public static Embedding Embedding ( int index = 0 , IEnumerable < float > vector = null ) ;
1604+ public static EmbeddingCollection EmbeddingCollection ( IEnumerable < Embedding > items = null , string model = null , EmbeddingTokenUsage usage = null ) ;
1605+ public static EmbeddingTokenUsage EmbeddingTokenUsage ( int inputTokens = 0 , int totalTokens = 0 ) ;
1606+ }
15961607}
15971608namespace OpenAI . Files {
15981609 public class FileClient {
@@ -1868,6 +1879,10 @@ public class ImageVariationOptions : IJsonModel<ImageVariationOptions>, IPersist
18681879 string IPersistableModel < ImageVariationOptions > . GetFormatFromOptions ( ModelReaderWriterOptions options ) ;
18691880 BinaryData IPersistableModel < ImageVariationOptions > . Write ( ModelReaderWriterOptions options ) ;
18701881 }
1882+ public static class OpenAIImagesModelFactory {
1883+ public static GeneratedImage GeneratedImage ( BinaryData imageBytes = null , Uri imageUri = null , string revisedPrompt = null ) ;
1884+ public static GeneratedImageCollection GeneratedImageCollection ( DateTimeOffset createdAt = default , IEnumerable < GeneratedImage > items = null ) ;
1885+ }
18711886}
18721887namespace OpenAI . Models {
18731888 public class ModelClient {
0 commit comments