# AspireChatCompletionsClientBuilder

- Kind: `class`
- Package: [Aspire.Azure.AI.Inference](/reference/api/csharp/aspire.azure.ai.inference.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Azure.AI.Inference`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/AspireChatCompletionsClientBuilder.cs)

Provides a builder for configuring and integrating an Aspire Chat Completions client into a host application.

## Definition

```csharp
namespace Aspire.Azure.AI.Inference;

public class AspireChatCompletionsClientBuilder
{
    // ...
}
```

## Remarks

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.

## Constructors

- [AspireChatCompletionsClientBuilder(IHostApplicationBuilder, string?, string?, bool, bool)](/reference/api/csharp/aspire.azure.ai.inference/aspirechatcompletionsclientbuilder/constructors.md#constructor-ihostapplicationbuilder-string-string-bool-bool) -- Provides a builder for configuring and integrating an Aspire Chat Completions client into a host application.

## Properties

- [DeploymentName](/reference/api/csharp/aspire.azure.ai.inference/aspirechatcompletionsclientbuilder/properties.md#deploymentname) : `string?` `get` -- The name of the deployment in Azure AI Foundry.
- [DisableTracing](/reference/api/csharp/aspire.azure.ai.inference/aspirechatcompletionsclientbuilder/properties.md#disabletracing) : `bool` `get` -- Gets a flag indicating whether tracing should be disabled.
- [EnableSensitiveTelemetryData](/reference/api/csharp/aspire.azure.ai.inference/aspirechatcompletionsclientbuilder/properties.md#enablesensitivetelemetrydata) : `bool` `get` -- Gets a flag indicating whether potentially sensitive information should be included in telemetry.
- [HostBuilder](/reference/api/csharp/aspire.azure.ai.inference/aspirechatcompletionsclientbuilder/properties.md#hostbuilder) : `IHostApplicationBuilder` `get` -- Gets the `Hosting.IHostApplicationBuilder` with which services are being registered.
- [ServiceKey](/reference/api/csharp/aspire.azure.ai.inference/aspirechatcompletionsclientbuilder/properties.md#servicekey) : `string?` `get` -- Gets the service key used to register the `Inference.ChatCompletionsClient` service, if any.
