Package-level declarations
Types
Link copied to clipboard
class OllamaClient(baseUrl: String = "http://localhost:11434", baseClient: HttpClient = HttpClient(engineFactoryProvider()), timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig(), clock: Clock = Clock.System) : LLMClient, LLMEmbeddingProvider
Client for interacting with the Ollama API with comprehensive model support.
Link copied to clipboard
object OllamaCustomModelConverters
Custom converters for specific Ollama models.
Link copied to clipboard
class OllamaModelCard
Represents metadata and configuration details about an Ollama model card. This class contains descriptive properties about the model, such as its name, family of models it belongs to, capabilities it supports, and specific technical attributes like parameter count and size.
Properties
Functions
Link copied to clipboard
fun List<OllamaModelCard>.findBestSuitedModels(family: String? = null, maxSize: Long? = null, minParameterCount: Long? = null, minContextLength: Long? = null, minEmbeddingLength: Long? = null, requiredCapabilities: List<LLMCapability>? = null): List<OllamaModelCard>
Filters a list of model cards by the given criteria.
Link copied to clipboard
Finds a model card by name.
Link copied to clipboard
Converts an instance of OllamaModelCard
to an LLModel
representation.