23 references to CompleteAsync
Aspire.Azure.AI.OpenAI.Tests (1)
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (1)
217var completion = await client.CompleteAsync("Whatever");
Aspire.OpenAI.Tests (1)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (1)
218var completion = await client.CompleteAsync("Whatever");
Microsoft.Extensions.AI.Abstractions.Tests (3)
ChatCompletion\ChatClientExtensionsTests.cs (3)
25_ = ChatClientExtensions.CompleteAsync(null!, "hello"); 30_ = ChatClientExtensions.CompleteAsync(new TestChatClient(), null!); 71ChatCompletion response = await client.CompleteAsync("hello", expectedOptions, cts.Token);
Microsoft.Extensions.AI.AzureAIInference.Tests (5)
AzureAIInferenceChatClientTests.cs (5)
284Assert.NotNull(await client.CompleteAsync("hello", new() 332Assert.NotNull(await client.CompleteAsync("hello", new() 368Assert.NotNull(await client.CompleteAsync("hello", new() 407Assert.NotNull(await client.CompleteAsync("hello", new() 766var response = await client.CompleteAsync("How old is Alice?", new()
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (6)
49var response = await _chatClient.CompleteAsync("What's the biggest animal?"); 102var response = await _chatClient.CompleteAsync("Explain in 10 words how AI works"); 206var response = await chatClient.CompleteAsync("What is the result of SecretComputation on 42 and 84?", new() 250var response = await chatClient.CompleteAsync("How much older is Elsa than Anna? Return the age difference as a single number.", new() 282var response = await chatClient.CompleteAsync("Are birds real?", new() 304var response = await chatClient.CompleteAsync("What's the current secret number?", new()
Microsoft.Extensions.AI.Ollama.Tests (4)
OllamaChatClientIntegrationTests.cs (2)
42var response = await chatClient.CompleteAsync("What is the current secret number? Answer with digits only.", new ChatOptions 78var response = await chatClient.CompleteAsync("What's the stock price for Microsoft in British pounds?", new ChatOptions
OllamaChatClientTests.cs (2)
113var response = await client.CompleteAsync("hello", new() 365var response = await client.CompleteAsync("How old is Alice?", new()
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIChatClientTests.cs (3)
183var response = await client.CompleteAsync("hello", new() 330Assert.NotNull(await client.CompleteAsync("hello", new() 744var response = await client.CompleteAsync("How old is Alice?", new()