Skip to content
Docs Try Aspire

AspireChatCompletionsClientBuilder Constructors

Class Constructors 1 member
Provides a builder for configuring and integrating an Aspire Chat Completions client into a host application.
Constructor(IHostApplicationBuilder, string?, string?, bool, bool) Section titled Constructor(IHostApplicationBuilder, string?, string?, bool, bool)
Provides a builder for configuring and integrating an Aspire Chat Completions client into a host application.
public class AspireChatCompletionsClientBuilder
{
public AspireChatCompletionsClientBuilder(
IHostApplicationBuilder hostBuilder,
string? serviceKey,
string? deploymentName,
bool disableTracing,
bool enableSensitiveTelemetryData)
{
// ...
}
}
hostBuilder IHostApplicationBuilder The Hosting.IHostApplicationBuilder with which services are being registered.
serviceKey string? The service key used to register the Inference.ChatCompletionsClient service, if any.
deploymentName string? The name of the deployment in Azure AI Foundry.
disableTracing bool A flag to indicate whether tracing should be disabled.
enableSensitiveTelemetryData bool A flag indicating whether potentially sensitive information should be included in telemetry.
This class is used to configure the necessary parameters for creating an Aspire Chat Completions client, such as the host application builder, service key, and optional model ID. It is intended for internal use within the application setup process.