次の方法で共有


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 can be provided per request via ModelId.

Returns

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

Applies to