findBestSuitedModels
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>(source)
Filters a list of model cards by the given criteria.
Parameters
family
the family, or null if you don't want to filter by family
maxSize
the maximum size, or null if you don't want to filter by size
minParameterCount
the minimum parameter count, or null if you don't want to filter by parameter count
minContextLength
the minimum context length, or null if you don't want to filter by context length
minEmbeddingLength
the minimum embedding length, or null if you don't want to filter by embedding length
requiredCapabilities
the required capabilities, or null if you don't want to filter by capabilities