AspireOpenAIClientBuilder
Class net10.0
A builder for configuring an
OpenAIClient service registration. Constructs a new instance of AspireOpenAIClientBuilder. namespace Aspire.OpenAI;
public class AspireOpenAIClientBuilder{ // ...} 7 members
Constructors1
Section titled ConstructorsAspireOpenAIClientBuilder(IHostApplicationBuilder, string, string?, bool, bool) A builder for configuring an
OpenAIClient service registration. Constructs a new instance of AspireOpenAIClientBuilder. Properties6
Section titled PropertiesConfigurationSectionNamevirtualgetstring Gets the name of the configuration section for this component type.
ConnectionNamegetstring Gets the name used to retrieve the connection string from the ConnectionStrings configuration section.
DisableTracinggetbool Gets a flag indicating whether tracing should be disabled.
EnableSensitiveTelemetryDatagetbool Gets a flag indicating whether potentially sensitive information should be included in telemetry.
HostBuildergetIHostApplicationBuilder Gets the
Hosting.IHostApplicationBuilder with which services are being registered. ServiceKeygetstring? Gets the service key used to register the
OpenAIClient service, if any.