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)
{
// ...
}
}
hostBuilderIHostApplicationBuilderThe application builder.
connectionNamestringThe project connection-string name.
serviceKeystring?The service key, or null for an unkeyed client.
disableTracingboolWhether tracing is disabled.
disableMetricsboolWhether metrics are disabled.
enableSensitiveTelemetryDataboolWhether telemetry may capture message content.