Companion

object Companion

Properties

Link copied to clipboard

The model of OpenAI that OpenAiEmbeddingModel uses when it is given none.

Functions

Link copied to clipboard
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.