ollama
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.
Parameters
baseUrl
where Ollama serves the API. Change it when Ollama runs on another machine; an Android emulator reaches the machine it runs on at http://10.0.2.2:11434/v1.
timeout
how long one call may take. A large model on a small machine can need more.