Class OllamaApiClient.Configuration
- Namespace
- OllamaSharp
- Assembly
- OllamaSharp.dll
The configuration for the Ollama API client.
public class OllamaApiClient.Configuration
- Inheritance
-
OllamaApiClient.Configuration
- Inherited Members
Properties
JsonSerializerContext
Gets or sets the JSON serializer context for source generation (optional, for NativeAOT scenarios). When null, standard System.Text.Json serialization is used without source generation for better compatibility.
public JsonSerializerContext? JsonSerializerContext { get; set; }
Property Value
Model
Gets or sets the model that should be used.
public string Model { get; set; }
Property Value
Uri
Gets or sets the URI of the Ollama API endpoint.
public Uri Uri { get; set; }