OpenAIChatClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET