18 references to new
Microsoft.Extensions.AI (1)
SpeechToText\ConfigureOptionsSpeechToTextClient.cs (1)
59options = options?.Clone() ?? new();
Microsoft.Extensions.AI.Abstractions.Tests (8)
SpeechToText\DelegatingSpeechToTextClientTests.cs (2)
26var expectedOptions = new SpeechToTextOptions(); 58var expectedOptions = new SpeechToTextOptions();
SpeechToText\SpeechToTextClientExtensionsTests.cs (1)
56var expectedOptions = new SpeechToTextOptions();
SpeechToText\SpeechToTextClientTests.cs (2)
18var expectedOptions = new SpeechToTextOptions(); 46var expectedOptions = new SpeechToTextOptions();
SpeechToText\SpeechToTextOptionsTests.cs (3)
15SpeechToTextOptions options = new(); 31SpeechToTextOptions options = new(); 63SpeechToTextOptions options = new();
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAISpeechToTextClientTests.cs (5)
87var response = await client.GetTextAsync(audioSpeechStream, new SpeechToTextOptions 162await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions 197await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions 234Assert.NotNull(await client.GetTextAsync(audioSpeechStream, new() 271Assert.NotNull(await client.GetTextAsync(audioSpeechStream, new()
Microsoft.Extensions.AI.Tests (4)
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (1)
36SpeechToTextOptions? providedOptions = nullProvidedOptions ? null : new() { ModelId = "test" };
SpeechToText\LoggingSpeechToTextClientTests.cs (2)
73new SpeechToTextOptions { SpeechLanguage = "pt" }); 123new SpeechToTextOptions { SpeechLanguage = "pt" }))
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (1)
92SpeechToTextOptions options = new()