AspireAzureProjectOpenAIClientBuilder Constructors
ClassConstructors1 member
Configures additional services for a
OpenAI.ProjectOpenAIClient registration. Constructor(IHostApplicationBuilder, string, string?, bool, bool, bool) Section titled Constructor(IHostApplicationBuilder, string, string?, bool, bool, bool) Configures additional services for a
OpenAI.ProjectOpenAIClient registration. public class AspireAzureProjectOpenAIClientBuilder{ public AspireAzureProjectOpenAIClientBuilder( IHostApplicationBuilder hostBuilder, string connectionName, string? serviceKey, bool disableTracing, bool disableMetrics, bool enableSensitiveTelemetryData) { // ... }}Parameters
hostBuilder IHostApplicationBuilder The application builder.connectionName stringThe project 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.