OllamaClient
constructor(baseUrl: String = "http://localhost:11434", baseClient: HttpClient = HttpClient(engineFactoryProvider()), timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig(), clock: Clock = Clock.System)(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. Implements:
LLMClient for executing prompts and streaming responses.
LLMEmbeddingProvider for generating embeddings from input text.