Skip to content
DocsTry Aspire
DocsTry

AspireOpenAIClientBuilder Properties

ClassProperties6 members
A builder for configuring an OpenAIClient service registration. Constructs a new instance of AspireOpenAIClientBuilder.
ConfigurationSectionNameSection titled ConfigurationSectionNamevirtualstring
Gets the name of the configuration section for this component type.
public virtual string ConfigurationSectionName { get; }
ConnectionNameSection titled ConnectionNamestring
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; }
EnableSensitiveTelemetryDataSection titled EnableSensitiveTelemetryDatabool
Gets a flag indicating whether potentially sensitive information should be included in telemetry.
public bool EnableSensitiveTelemetryData { get; }
HostBuilderSection titled HostBuilderIHostApplicationBuilder
Gets the Hosting.IHostApplicationBuilder with which services are being registered.
public IHostApplicationBuilder HostBuilder { get; }
ServiceKeySection titled ServiceKeynullablestring?
Gets the service key used to register the OpenAIClient service, if any.
public string? ServiceKey { get; }