Companion

object Companion

Properties

Link copied to clipboard

The address at which Ollama serves this API on the machine it runs on.

Link copied to clipboard

The address of the API of OpenAI, the default for baseUrl.

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.