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) | |
AsChatClient(OpenAIClient, String) |
AsChatClient(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
- OpenAI.Chat.ChatClient
Returns
Applies to
AsChatClient(OpenAIClient, String)
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
- OpenAI.OpenAIClient
- modelId
- String
Returns
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.