OpenAIClientExtensions.AsChatClient Method
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
AsChatClient(ChatClient) |
Gets an IChatClient for use with this ChatClient. |
AsChatClient(OpenAIClient, String) |
Gets an IChatClient for use with this OpenAIClient. |
AsChatClient(ChatClient)
Gets an IChatClient for use with this ChatClient.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::AI::IChatClient ^ AsChatClient(OpenAI::Chat::ChatClient ^ chatClient);
public static Microsoft.Extensions.AI.IChatClient AsChatClient (this OpenAI.Chat.ChatClient chatClient);
static member AsChatClient : OpenAI.Chat.ChatClient -> Microsoft.Extensions.AI.IChatClient
<Extension()>
Public Function AsChatClient (chatClient As ChatClient) As IChatClient
Parameters
- chatClient
- ChatClient
The client.
Returns
An IChatClient that may be used to converse via the ChatClient.
Applies to
AsChatClient(OpenAIClient, String)
Gets an IChatClient for use with this OpenAIClient.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::AI::IChatClient ^ AsChatClient(OpenAI::OpenAIClient ^ openAIClient, System::String ^ modelId);
public static Microsoft.Extensions.AI.IChatClient AsChatClient (this OpenAI.OpenAIClient openAIClient, string modelId);
static member AsChatClient : OpenAI.OpenAIClient * string -> Microsoft.Extensions.AI.IChatClient
<Extension()>
Public Function AsChatClient (openAIClient As OpenAIClient, modelId As String) As IChatClient
Parameters
- openAIClient
- OpenAIClient
The client.
- modelId
- String
The model.
Returns
An IChatClient that may be used to converse via the OpenAIClient.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET