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
AssistantClient |
Gets an active assistant client instance. |
Client |
Gets an active client instance. |
Methods
ForAzureOpenAI(ApiKeyCredential, Uri, HttpClient) |
Produces an OpenAIClientProvider based on AzureOpenAIClient. |
ForAzureOpenAI(TokenCredential, Uri, HttpClient) |
Produces an OpenAIClientProvider based on AzureOpenAIClient. |
ForOpenAI(ApiKeyCredential, Uri, HttpClient) |
Produces an OpenAIClientProvider based on OpenAI.OpenAIClient. |
ForOpenAI(Uri, HttpClient) |
Produces an OpenAIClientProvider based on OpenAI.OpenAIClient. |
FromClient(OpenAIClient) |
Provides a client instance directly. |