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) | |
OpenAIChatClient(OpenAIClient, String) |
OpenAIChatClient(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
Applies to
OpenAIChatClient(OpenAIClient, String)
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
- modelId
- String
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.