4 instantiations of AzureAIInferenceChatClient
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceExtensions.cs (1)
17new AzureAIInferenceChatClient(chatCompletionsClient, modelId);
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
AzureAIInferenceChatClientTests.cs (3)
29Assert.Throws<ArgumentNullException>("chatCompletionsClient", () => new AzureAIInferenceChatClient(null!, "model")); 32Assert.Throws<ArgumentException>("modelId", () => new AzureAIInferenceChatClient(client, " ")); 38using AzureAIInferenceChatClient client = new(new(new("http://somewhere"), new AzureKeyCredential("key")), "mode");
4 references to AzureAIInferenceChatClient
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
36/// <summary>Initializes a new instance of the <see cref="AzureAIInferenceChatClient"/> class for the specified <see cref="ChatCompletionsClient"/>.</summary>
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
AzureAIInferenceChatClientTests.cs (3)
38using AzureAIInferenceChatClient client = new(new(new("http://somewhere"), new AzureKeyCredential("key")), "mode"); 78Assert.Same(chatClient, chatClient.GetService<AzureAIInferenceChatClient>()); 99Assert.Null(pipeline.GetService<AzureAIInferenceChatClient>("key"));