Share via


AzureOpenAIExtensions Class

Definition

The Azure OpenAI extensions.

public static class AzureOpenAIExtensions
type AzureOpenAIExtensions = class
Public Module AzureOpenAIExtensions
Inheritance
AzureOpenAIExtensions

Methods

Add(List<ChatMessage>, ChatCompletion)

Adds a chat completion as an AssistantChatMessage to the list of chat messages.

Add(List<ChatMessage>, IEnumerable<ToolChatMessage>)

Adds a list of tool chat messages to the list of chat messages.

Add(List<ChatMessage>, IEnumerable<VectorbaseEntry>)

Adds a list of vectorbase entries to the list of chat messages.

AsText(ChatCompletion)

returns full text of all parts.

AsText(ChatMessageContent)

returns full text of all parts.

AsText(ClientResult<ChatCompletion>)

returns full text of all parts.

GetAzureOpenAIChatClient(ClientConnectionProvider, String)

Gets the OpenAI chat client.

GetAzureOpenAIEmbeddingClient(ClientConnectionProvider, String)

Gets the OpenAI embedding client.

GetOpenAIChatClient(ConnectionProvider, String)

Gets the OpenAI chat client.

GetOpenAIEmbeddingClient(ConnectionProvider, String)

Gets the OpenAI embedding client.

Trim(List<ChatMessage>)

Trims list of chat messages.

Applies to