Companion
object Companion
Properties
Functions
Link copied to clipboard
fun ollama(client: HttpClient, model: String, parameters: JsonObject = JsonObject(emptyMap()), baseUrl: String = OLLAMA_BASE_URL, timeout: Duration? = 5.minutes): OpenAiChatModel
Returns a model that calls model on an Ollama server, which needs no key. Pull the model first (ollama pull llama3.2), and choose one that supports tools for an agent with tools.