ollama
fun ollama(client: HttpClient, model: String, baseUrl: String = OpenAiChatModel.OLLAMA_BASE_URL, timeout: Duration? = 1.minutes): OpenAiEmbeddingModel
Returns a model that calls model on an Ollama server, which needs no key. Pull the model first, for example ollama pull nomic-embed-text.
Parameters
baseUrl
where Ollama serves the API. Change it when Ollama runs on another machine.