18 references to new
Microsoft.Extensions.AI (1)
SpeechToText\ConfigureOptionsSpeechToTextClient.cs (1)
60options = 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)
90var response = await client.GetTextAsync(audioSpeechStream, new SpeechToTextOptions 165await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions 200await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions 237Assert.NotNull(await client.GetTextAsync(audioSpeechStream, new() 274Assert.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)
94SpeechToTextOptions options = new()