1 type derived from ChatCompletion
Microsoft.Extensions.AI (1)
14 instantiations of ChatCompletion
Aspire.Azure.AI.OpenAI.Tests (1)
Aspire.OpenAI.Tests (1)
Microsoft.Extensions.AI.Abstractions.Tests (5)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.Tests (6)
120 references to ChatCompletion
Aspire.Azure.AI.OpenAI.Tests (2)
Aspire.OpenAI.Tests (2)
Microsoft.Extensions.AI (34)
ChatCompletion\AnonymousDelegatingChatClient.cs (7)
20private readonly Func<IList<ChatMessage>, ChatOptions?, IChatClient, CancellationToken, Task<ChatCompletion>>? _completeFunc;
74Func<IList<ChatMessage>, ChatOptions?, IChatClient, CancellationToken, Task<ChatCompletion>>? completeFunc,
85public override Task<ChatCompletion> CompleteAsync(
94async Task<ChatCompletion> CompleteViaSharedAsync(IList<ChatMessage> chatMessages, ChatOptions? options, CancellationToken cancellationToken)
96ChatCompletion? completion = null;
169static async IAsyncEnumerable<StreamingChatCompletionUpdate> CompleteStreamingAsyncViaCompleteAsync(Task<ChatCompletion> task)
171ChatCompletion completion = await task.ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions (28)
Microsoft.Extensions.AI.Abstractions.Tests (21)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
Microsoft.Extensions.AI.Integration.Tests (6)
Microsoft.Extensions.AI.Ollama (1)
Microsoft.Extensions.AI.Ollama.Tests (2)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (4)
Microsoft.Extensions.AI.Tests (13)
ChatCompletion\UseDelegateChatClientTests.cs (6)
75ChatCompletion completion = await client.CompleteAsync(expectedMessages, expectedOptions, expectedCts.Token);
110var cc = await innerClient.CompleteAsync(chatMessages, options, cancellationToken);
118ChatCompletion completion = await client.CompleteAsync(expectedMessages, expectedOptions, expectedCts.Token);
169ChatCompletion completion = await client.CompleteAsync(expectedMessages, expectedOptions, expectedCts.Token);
213var cc = await innerClient.CompleteAsync(chatMessages, options, cancellationToken);
240ChatCompletion completion = await client.CompleteAsync(expectedMessages, expectedOptions, expectedCts.Token);
Microsoft.ML.GenAI.Core (1)
Microsoft.ML.GenAI.LLaMA (1)
Microsoft.ML.GenAI.Phi (1)