48 references to GetResponseAsync
Aspire.Azure.AI.OpenAI.Tests (1)
Aspire.OpenAI.Tests (2)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.AzureAIInference.Tests (11)
AzureAIInferenceChatClientTests.cs (11)
42await Assert.ThrowsAsync<InvalidOperationException>(() => chatClient.GetResponseAsync("hello"));
45await Assert.ThrowsAsync<InvalidOperationException>(() => chatClient.GetResponseAsync("hello", new ChatOptions { ModelId = null }));
254var response = await client.GetResponseAsync("hello", new ChatOptions
368var response = await client.GetResponseAsync("hello", chatOptions);
535var response = await client.GetResponseAsync("hello", chatOptions);
684Assert.NotNull(await client.GetResponseAsync("hello", new()
743Assert.NotNull(await client.GetResponseAsync("hello", new()
794Assert.NotNull(await client.GetResponseAsync("hello", new()
830Assert.NotNull(await client.GetResponseAsync("hello", new()
887Assert.NotNull(await client.GetResponseAsync("hello", new()
1249var response = await client.GetResponseAsync("How old is Alice?", new()
Microsoft.Extensions.AI.Integration.Tests (8)
Microsoft.Extensions.AI.OllamaSharp.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI.Tests (12)
Microsoft.Extensions.AI.Tests (9)