Share via


AspireAzureOpenAIClientBuilder Class

Definition

A builder for configuring an AzureOpenAIClient service registration. Constructs a new instance of AspireAzureOpenAIClientBuilder.

public class AspireAzureOpenAIClientBuilder : Aspire.OpenAI.AspireOpenAIClientBuilder
type AspireAzureOpenAIClientBuilder = class
    inherit AspireOpenAIClientBuilder
Public Class AspireAzureOpenAIClientBuilder
Inherits AspireOpenAIClientBuilder
Inheritance
AspireAzureOpenAIClientBuilder

Constructors

AspireAzureOpenAIClientBuilder(IHostApplicationBuilder, String, String, Boolean)

A builder for configuring an AzureOpenAIClient service registration. Constructs a new instance of AspireAzureOpenAIClientBuilder.

Properties

ConfigurationSectionName

Gets the name of the configuration section for this component type.

ConnectionName

Gets the name used to retrieve the connection string from the ConnectionStrings configuration section.

(Inherited from AspireOpenAIClientBuilder)
DisableTracing

Gets a flag indicating whether tracing should be disabled.

(Inherited from AspireOpenAIClientBuilder)
HostBuilder

Gets the IHostApplicationBuilder with which services are being registered.

(Inherited from AspireOpenAIClientBuilder)
ServiceKey

Gets the service key used to register the OpenAI.OpenAIClient service, if any.

(Inherited from AspireOpenAIClientBuilder)

Extension Methods

AddChatClient(AspireOpenAIClientBuilder, String)

Registers a singleton IChatClient in the services provided by the builder.

AddKeyedChatClient(AspireOpenAIClientBuilder, String, String)

Registers a keyed singleton IChatClient in the services provided by the builder.

AddEmbeddingGenerator(AspireOpenAIClientBuilder, String)

Registers a singleton IEmbeddingGenerator<TInput,TEmbedding> in the services provided by the builder.

AddKeyedEmbeddingGenerator(AspireOpenAIClientBuilder, String, String)

Registers a keyed singleton IEmbeddingGenerator<TInput,TEmbedding> in the services provided by the builder.

Applies to