1 write to _chatClient
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
39
_chatClient
= Throw.IfNull(chatClient);
4 references to _chatClient
Microsoft.Extensions.AI.OpenAI (4)
OpenAIChatClient.cs (4)
41
_metadata = new("openai", chatClient.Endpoint,
_chatClient
.Model);
52
serviceType == typeof(ChatClient) ?
_chatClient
:
67
var response = await
_chatClient
.CompleteChatAsync(openAIChatMessages, openAIOptions, cancellationToken).ConfigureAwait(false);
82
var chatCompletionUpdates =
_chatClient
.CompleteChatStreamingAsync(openAIChatMessages, openAIOptions, cancellationToken);