# ChatCompletionsClientSettings Properties

- Package: [Aspire.Azure.AI.Inference](/reference/api/csharp/aspire.azure.ai.inference.md)
- Type: [ChatCompletionsClientSettings](/reference/api/csharp/aspire.azure.ai.inference/chatcompletionsclientsettings.md)
- Kind: `Properties`
- Members: `8`

Represents configuration settings for Azure AI Chat Completions client.

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets the connection string used to connect to the AI Foundry account.

```csharp
public string? ConnectionString { get; set; }
```

## Remarks

If [ChatCompletionsClientSettings.ConnectionString](/reference/api/csharp/aspire.azure.ai.inference/chatcompletionsclientsettings/properties.md#connectionstring) is set, it overrides [ChatCompletionsClientSettings.Endpoint](/reference/api/csharp/aspire.azure.ai.inference/chatcompletionsclientsettings/properties.md#endpoint), [ChatCompletionsClientSettings.DeploymentName](/reference/api/csharp/aspire.azure.ai.inference/chatcompletionsclientsettings/properties.md#deploymentname) and [ChatCompletionsClientSettings.TokenCredential](/reference/api/csharp/aspire.azure.ai.inference/chatcompletionsclientsettings/properties.md#tokencredential).

## DeploymentName

- Name: `DeploymentName`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets the name of the AI model deployment to use for chat completions.

```csharp
public string? DeploymentName { get; set; }
```

## DisableMetrics

- Name: `DisableMetrics`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.

```csharp
public bool DisableMetrics { get; set; }
```

## Remarks

Telemetry is recorded by Microsoft.Extensions.AI.

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

```csharp
public bool DisableTracing { get; set; }
```

## Remarks

Telemetry is recorded by Microsoft.Extensions.AI.

## EnableSensitiveTelemetryData

- Name: `EnableSensitiveTelemetryData`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets a boolean value indicating whether potentially sensitive information should be included in telemetry.

```csharp
public bool EnableSensitiveTelemetryData { get; set; }
```

## Remarks

By default, telemetry includes metadata, such as token counts, but not raw inputs and outputs, such as message content, function call arguments, and function call results. The default value can be overridden by setting the `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` environment variable to "true". Explicitly setting this property will override the environment variable.

## Endpoint

- Name: `Endpoint`
- Modifiers: `nullable` `get; set`
- Returns: `Uri?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets the endpoint URI for the Azure AI service.

```csharp
public Uri? Endpoint { get; set; }
```

## Key

- Name: `Key`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets the API key used for authentication with the Azure AI service.

```csharp
public string? Key { get; set; }
```

## TokenCredential

- Name: `TokenCredential`
- Modifiers: `nullable` `get; set`
- Returns: `TokenCredential?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/ChatCompletionsClientSettings.cs)

Gets or sets the token credential used for Azure authentication.

```csharp
public TokenCredential? TokenCredential { get; set; }
```
