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