19 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 (2)
AzureAIInferenceChatClientTests.cs (2)
140var response = await client.CompleteAsync("hello", new() 510var response = await client.CompleteAsync("How old is Alice?", new()
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (6)
50var response = await _chatClient.CompleteAsync("What's the biggest animal?"); 103var response = await _chatClient.CompleteAsync("Explain in 10 words how AI works"); 196var response = await chatClient.CompleteAsync("What is the result of SecretComputation on 42 and 84?", new() 240var response = await chatClient.CompleteAsync("How much older is Elsa than Anna? Return the age difference as a single number.", new() 272var response = await chatClient.CompleteAsync("Are birds real?", new() 294var response = await chatClient.CompleteAsync("What's the current secret number?", new()
Microsoft.Extensions.AI.Ollama.Tests (4)
OllamaChatClientIntegrationTests.cs (2)
48var response = await chatClient.CompleteAsync("What is the current secret number? Answer with digits only.", new ChatOptions 84var 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 (2)
OpenAIChatClientTests.cs (2)
183var response = await client.CompleteAsync("hello", new() 658var response = await client.CompleteAsync("How old is Alice?", new()