AspireAzureOpenAIClientBuilder Constructors
ClassConstructors1 member
Configures additional services for an Azure OpenAI account's
OpenAIClient registration. Constructor(IHostApplicationBuilder, string, string?, bool, bool, bool) Section titled Constructor(IHostApplicationBuilder, string, string?, bool, bool, bool) Configures additional services for an Azure OpenAI account's
OpenAIClient registration. public class AspireAzureOpenAIClientBuilder{ public AspireAzureOpenAIClientBuilder( IHostApplicationBuilder hostBuilder, string connectionName, string? serviceKey, bool disableTracing, bool disableMetrics, bool enableSensitiveTelemetryData) { // ... }}Parameters
hostBuilder IHostApplicationBuilder The application builder.connectionName stringThe account connection-string name.serviceKey string?The service key, or null for an unkeyed client.disableTracing boolWhether tracing is disabled.disableMetrics boolWhether metrics are disabled.enableSensitiveTelemetryData boolWhether telemetry may capture message content.