AspireOpenAIClientBuilder Constructors
ClassConstructors1 member
A builder for configuring an
OpenAIClient service registration. Constructs a new instance of AspireOpenAIClientBuilder. Constructor(IHostApplicationBuilder, string, string?, bool, bool)Section titled Constructor(IHostApplicationBuilder, string, string?, bool, bool) A builder for configuring an
OpenAIClient service registration. Constructs a new instance of AspireOpenAIClientBuilder. public class AspireOpenAIClientBuilder{ public AspireOpenAIClientBuilder( IHostApplicationBuilder hostBuilder, string connectionName, string? serviceKey, bool disableTracing, bool enableSensitiveTelemetryData) { // ... }}Parameters
hostBuilderIHostApplicationBuilderThe Hosting.IHostApplicationBuilder with which services are being registered.connectionNamestringThe name used to retrieve the connection string from the ConnectionStrings configuration section.serviceKeystring?The service key used to register the OpenAIClient service, if any.disableTracingboolA flag to indicate whether tracing should be disabled.enableSensitiveTelemetryDataboolA flag indicating whether potentially sensitive information should be included in telemetry.