OpenAIClientProvider Class
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.
Provides an OpenAI.OpenAIClient for use by OpenAIAssistantAgent.
public sealed class OpenAIClientProvider
type OpenAIClientProvider = class
Public NotInheritable Class OpenAIClientProvider
- Inheritance
-
OpenAIClientProvider
Properties
Client |
An active client instance. |
Methods
ForAzureOpenAI(ApiKeyCredential, Uri, HttpClient) |
Produce a OpenAIClientProvider based on AzureOpenAIClient. |
ForAzureOpenAI(TokenCredential, Uri, HttpClient) |
Produce a OpenAIClientProvider based on AzureOpenAIClient. |
ForOpenAI(ApiKeyCredential, Uri, HttpClient) |
Produce a OpenAIClientProvider based on OpenAI.OpenAIClient. |
ForOpenAI(Uri, HttpClient) |
Produce a OpenAIClientProvider based on OpenAI.OpenAIClient. |
FromClient(OpenAIClient) |
Directly provide a client instance. |