diff --git a/backend/mem0_manager.py b/backend/mem0_manager.py index 3547023..abe080f 100644 --- a/backend/mem0_manager.py +++ b/backend/mem0_manager.py @@ -102,10 +102,16 @@ class Mem0Manager: }, }, "embedder": { - "provider": "ollama", + # Route embeddings through the OpenAI-compatible LiteLLM proxy + # rather than Ollama directly — the proxy is reachable from the + # container in all deployments, Ollama may not be. The model + # name is the same (qwen3-embedding:4b-q8_0); existing vectors + # generated via this path stay compatible. + "provider": "openai", "config": { "model": settings.embedding_model, - "ollama_base_url": settings.ollama_base_url, + "api_key": settings.openai_api_key, + "openai_base_url": settings.openai_base_url, "embedding_dims": settings.embedding_dims, }, },