Compartilhar via


AzureAIInferenceExtensions.AsChatClient(ChatCompletionsClient, String) Method

Definition

Gets an IChatClient for use with this ChatCompletionsClient.

public static Microsoft.Extensions.AI.IChatClient AsChatClient (this Azure.AI.Inference.ChatCompletionsClient chatCompletionsClient, string? modelId = default);
static member AsChatClient : Azure.AI.Inference.ChatCompletionsClient * string -> Microsoft.Extensions.AI.IChatClient
<Extension()>
Public Function AsChatClient (chatCompletionsClient As ChatCompletionsClient, Optional modelId As String = Nothing) As IChatClient

Parameters

chatCompletionsClient
ChatCompletionsClient

The client.

modelId
String

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

Returns

An IChatClient that may be used to converse via the ChatCompletionsClient.

Applies to