Skip to content
Docs Try Aspire

OllamaSharpSettings Properties

Class Properties 7 members
Represents the settings for OllamaSharp.
DisableHealthChecks Section titled DisableHealthChecks bool
Gets or sets a boolean value that indicates whether the Ollama health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether tracing is disabled or not.
public bool DisableTracing { get; set; }
Currently, the OllamaSharp SDK does not support tracing, but this is here for future use.
Endpoint Section titled Endpoint nullable Uri?
Gets or sets the connection string.
public Uri? Endpoint { get; set; }
HealthCheckTimeout Section titled HealthCheckTimeout nullable int?
Gets or sets a integer value that indicates the Ollama health check timeout in milliseconds.
public int? HealthCheckTimeout { get; set; }
JsonSerializerContext Section titled JsonSerializerContext nullable JsonSerializerContext?
Gets or sets the JSON serializer context for Native AOT support.
public JsonSerializerContext? JsonSerializerContext { get; set; }
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 Section titled Models IReadOnlyList<string>
Gets or sets the list of models to available.
public IReadOnlyList<string> Models { get; set; }
SelectedModel Section titled SelectedModel nullable string?
Gets or sets the selected model.
public string? SelectedModel { get; set; }