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)
{
// ...
}
}
hostBuilderIHostApplicationBuilderThe application builder.
connectionNamestringThe account connection-string name.
serviceKeystring?The service key, or null for an unkeyed client.
disableTracingboolWhether tracing is disabled.
disableMetricsboolWhether metrics are disabled.
enableSensitiveTelemetryDataboolWhether telemetry may capture message content.