Share via


OpenAIChatClient Constructors

Definition

Overloads

OpenAIChatClient(ChatClient)

Initializes a new instance of the OpenAIChatClient class for the specified OpenAI.Chat.ChatClient.

OpenAIChatClient(OpenAIClient, String)

Initializes a new instance of the OpenAIChatClient class for the specified OpenAI.OpenAIClient.

OpenAIChatClient(ChatClient)

Initializes a new instance of the OpenAIChatClient class for the specified OpenAI.Chat.ChatClient.

public:
 OpenAIChatClient(OpenAI::Chat::ChatClient ^ chatClient);
public OpenAIChatClient (OpenAI.Chat.ChatClient chatClient);
new Microsoft.Extensions.AI.OpenAIChatClient : OpenAI.Chat.ChatClient -> Microsoft.Extensions.AI.OpenAIChatClient
Public Sub New (chatClient As ChatClient)

Parameters

chatClient
OpenAI.Chat.ChatClient

The underlying client.

Applies to

OpenAIChatClient(OpenAIClient, String)

Initializes a new instance of the OpenAIChatClient class for the specified OpenAI.OpenAIClient.

public:
 OpenAIChatClient(OpenAI::OpenAIClient ^ openAIClient, System::String ^ modelId);
public OpenAIChatClient (OpenAI.OpenAIClient openAIClient, string modelId);
new Microsoft.Extensions.AI.OpenAIChatClient : OpenAI.OpenAIClient * string -> Microsoft.Extensions.AI.OpenAIChatClient
Public Sub New (openAIClient As OpenAIClient, modelId As String)

Parameters

openAIClient
OpenAI.OpenAIClient

The underlying client.

modelId
String

The model to use.

Applies to