AzureAIInferenceChatClient(ChatCompletionsClient, String) Constructor

Definition

Initializes a new instance of the AzureAIInferenceChatClient class for the specified ChatCompletionsClient.

C#
public AzureAIInferenceChatClient(Azure.AI.Inference.ChatCompletionsClient chatCompletionsClient, string? modelId = default);

Parameters

chatCompletionsClient
ChatCompletionsClient

The underlying client.

modelId
String

The ID of the model to use. If null, it can be provided per request via ModelId.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)