[Bug] embedding.provider "ollama" fails with 404 against local ollama server — litellm provider form works
Author: pperezrubioCreated Aug 24, 2026Updated Sep 30, 2026
Labelskernel
[Bug] embedding.provider: "ollama" fails with 404 against local ollama server
Version: v0.4.16 (uv tool install, macOS arm64, Python 3.14)
Summary
Configuring the dense embedding provider with the documented ollama
provider produces a probe failure — LiteLLM builds a request path that
ollama answers with 404 page not found. Switching the same ollama
server to the litellm provider form (model: "ollama/nomic-embed-text")
works immediately.
Repro
~/.openviking/ov.conf:
{
"embedding": {
"dense": {
"provider": "ollama",
"api_base": "http://127.0.0.1:11434",
"model": "nomic-embed-text",
"dimension": 768
}
}
}$ openviking-server doctor
Embedding: FAIL ollama/nomic-embed-text api_base=http://127.0.0.1:11434
dimension=768 (probe failed: OpenAI API error: 404 page not found)The server itself is fine — both native and OpenAI-compat endpoints answer:
$ curl -s http://127.0.0.1:11434/v1/embeddings -d '{"model":"nomic-embed-text","input":"probe"}'
{"object":"list","data":[{"embedding":[...]}]} # works
$ curl -s http://127.0.0.1:11434/api/embed -d '{"model":"nomic-embed-text","input":"probe"}'
{"embeddings":[[...]]} # worksWorkaround
{
"embedding": {
"dense": {
"provider": "litellm",
"api_key": "ollama",
"api_base": "http://127.0.0.1:11434",
"model": "ollama/nomic-embed-text",
"dimension": 768
}
}
}doctor then reports probe ok (dimension=768) against the same server.
Expectation
Either the ollama embedding provider should route to the same
litellm path that the workaround uses, or the config docs should state
that local ollama embeddings require the litellm provider form.
Source: volcengine/OpenViking