Partager via


OpenAIClientProvider Class

Definition

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.

Applies to