OllamaClient
constructor(baseUrl: String = "http://localhost:11434", baseClient: HttpClient = HttpClient(engineFactoryProvider()), timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig(), clock: Clock = Clock.System, contextWindowStrategy: ContextWindowStrategy = ContextWindowStrategy.Companion.None)(source)
Parameters
baseUrl
The base URL of the Ollama server. Defaults to "http://localhost:11434".
baseClient
The underlying HTTP client used for making requests.
timeoutConfig
Configuration for connection, request, and socket timeouts.
clock
Clock instance used for tracking response metadata timestamps.
contextWindowStrategy
The ContextWindowStrategy to use for computing context window lengths. Defaults to ContextWindowStrategy.None.