Jaa


OpenAIChatClient Constructors

Definition

Overloads

OpenAIChatClient(ChatClient)

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

OpenAIChatClient(OpenAIClient, String)

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

OpenAIChatClient(ChatClient)

Initializes a new instance of the OpenAIChatClient class for the specified 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
ChatClient

The underlying client.

Applies to

OpenAIChatClient(OpenAIClient, String)

Initializes a new instance of the OpenAIChatClient class for the specified 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
OpenAIClient

The underlying client.

modelId
String

The model to use.

Applies to