Partager via


OpenAIClientExtensions Class

Definition

Provides extension methods for working with OpenAI.OpenAIClients.

public ref class OpenAIClientExtensions abstract sealed
public static class OpenAIClientExtensions
type OpenAIClientExtensions = class
Public Module OpenAIClientExtensions
Inheritance
OpenAIClientExtensions

Methods

AsChatClient(ChatClient)

Gets an IChatClient for use with this OpenAI.Chat.ChatClient.

AsChatClient(OpenAIClient, String)

Gets an IChatClient for use with this OpenAI.OpenAIClient.

AsEmbeddingGenerator(EmbeddingClient, Nullable<Int32>)

Gets an IEmbeddingGenerator<TInput,TEmbedding> for use with this OpenAI.Embeddings.EmbeddingClient.

AsEmbeddingGenerator(OpenAIClient, String, Nullable<Int32>)

Gets an IEmbeddingGenerator<TInput,TEmbedding> for use with this OpenAI.OpenAIClient.

Applies to