Skip to content
Docs Try Aspire

AspireOpenAIClientBuilder Properties

Class Properties 6 members
A builder for configuring an OpenAIClient service registration. Constructs a new instance of AspireOpenAIClientBuilder.
ConfigurationSectionName Section titled ConfigurationSectionName virtual string
Gets the name of the configuration section for this component type.
public virtual string ConfigurationSectionName { get; }
ConnectionName Section titled ConnectionName string
Gets the name used to retrieve the connection string from the ConnectionStrings configuration section.
public string ConnectionName { get; }
Gets a flag indicating whether tracing should be disabled.
public bool DisableTracing { get; }
EnableSensitiveTelemetryData Section titled EnableSensitiveTelemetryData bool
Gets a flag indicating whether potentially sensitive information should be included in telemetry.
public bool EnableSensitiveTelemetryData { get; }
HostBuilder Section titled HostBuilder IHostApplicationBuilder
Gets the Hosting.IHostApplicationBuilder with which services are being registered.
public IHostApplicationBuilder HostBuilder { get; }
ServiceKey Section titled ServiceKey nullable string?
Gets the service key used to register the OpenAIClient service, if any.
public string? ServiceKey { get; }