# OllamaSharpSettings Properties

- Package: [CommunityToolkit.Aspire.OllamaSharp](/reference/api/csharp/communitytoolkit.aspire.ollamasharp.md)
- Type: [OllamaSharpSettings](/reference/api/csharp/communitytoolkit.aspire.ollamasharp/ollamasharpsettings.md)
- Kind: `Properties`
- Members: `7`

Represents the settings for OllamaSharp.

## DisableHealthChecks

- Name: `DisableHealthChecks`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.OllamaSharp/OllamaSharpSettings.cs)

Gets or sets a boolean value that indicates whether the Ollama health check is disabled or not.

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

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.OllamaSharp/OllamaSharpSettings.cs)

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

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

## Remarks

Currently, the OllamaSharp SDK does not support tracing, but this is here for future use.

## Endpoint

- Name: `Endpoint`
- Modifiers: `nullable` `get; set`
- Returns: `Uri?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.OllamaSharp/OllamaSharpSettings.cs)

Gets or sets the connection string.

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

## HealthCheckTimeout

- Name: `HealthCheckTimeout`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.OllamaSharp/OllamaSharpSettings.cs)

Gets or sets a integer value that indicates the Ollama health check timeout in milliseconds.

```csharp
public int? HealthCheckTimeout { get; set; }
```

## JsonSerializerContext

- Name: `JsonSerializerContext`
- Modifiers: `nullable` `get; set`
- Returns: `JsonSerializerContext?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.OllamaSharp/OllamaSharpSettings.cs)

Gets or sets the JSON serializer context for Native AOT support.

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

## Remarks

When using Native AOT, provide a custom `Serialization.JsonSerializerContext` that includes all types that will be serialized. This is required for AOT compatibility. See https://github.com/awaescher/OllamaSharp/blob/main/docs/native-aot-support.md for more information.

## Models

- Name: `Models`
- Modifiers: `get; set`
- Returns: `IReadOnlyList<string>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.OllamaSharp/OllamaSharpSettings.cs)

Gets or sets the list of models to available.

```csharp
public IReadOnlyList<string> Models { get; set; }
```

## SelectedModel

- Name: `SelectedModel`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.OllamaSharp/OllamaSharpSettings.cs)

Gets or sets the selected model.

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