# AspireOpenAIClientBuilder Properties

- Package: [Aspire.OpenAI](/reference/api/csharp/aspire.openai.md)
- Type: [AspireOpenAIClientBuilder](/reference/api/csharp/aspire.openai/aspireopenaiclientbuilder.md)
- Kind: `Properties`
- Members: `6`

A builder for configuring an `OpenAIClient` service registration. Constructs a new instance of [AspireOpenAIClientBuilder](/reference/api/csharp/aspire.openai/aspireopenaiclientbuilder.md).

## ConfigurationSectionName

- Name: `ConfigurationSectionName`
- Modifiers: `virtual` `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Components/Aspire.OpenAI/AspireOpenAIClientBuilder.cs#L55-L57)

Gets the name of the configuration section for this component type.

```csharp
public virtual string ConfigurationSectionName { get; }
```

## ConnectionName

- Name: `ConnectionName`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Components/Aspire.OpenAI/AspireOpenAIClientBuilder.cs#L35)

Gets the name used to retrieve the connection string from the ConnectionStrings configuration section.

```csharp
public string ConnectionName { get; }
```

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Components/Aspire.OpenAI/AspireOpenAIClientBuilder.cs#L45)

Gets a flag indicating whether tracing should be disabled.

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

## EnableSensitiveTelemetryData

- Name: `EnableSensitiveTelemetryData`
- Modifiers: `get`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Components/Aspire.OpenAI/AspireOpenAIClientBuilder.cs#L50)

Gets a flag indicating whether potentially sensitive information should be included in telemetry.

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

## HostBuilder

- Name: `HostBuilder`
- Modifiers: `get`
- Returns: `IHostApplicationBuilder`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Components/Aspire.OpenAI/AspireOpenAIClientBuilder.cs#L30)

Gets the `Hosting.IHostApplicationBuilder` with which services are being registered.

```csharp
public IHostApplicationBuilder HostBuilder { get; }
```

## ServiceKey

- Name: `ServiceKey`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Components/Aspire.OpenAI/AspireOpenAIClientBuilder.cs#L40)

Gets the service key used to register the `OpenAIClient` service, if any.

```csharp
public string? ServiceKey { get; }
```
