fix: add LLM provider detection and defaults to memory config#4400
Merged
whysosaket merged 2 commits intomainfrom Mar 19, 2026
Merged
fix: add LLM provider detection and defaults to memory config#4400whysosaket merged 2 commits intomainfrom
whysosaket merged 2 commits intomainfrom
Conversation
whysosaket
reviewed
Mar 18, 2026
whysosaket
reviewed
Mar 18, 2026
whysosaket
approved these changes
Mar 19, 2026
jamebobob
pushed a commit
to jamebobob/mem0-vigil-recall
that referenced
this pull request
Mar 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Docker Compose environment variables for LLM and embedder configuration (LLM_PROVIDER, OLLAMA_BASE_URL, etc.) were silently ignored. The get_default_memory_config() function had extensive env var
detection for vector stores (10+ providers) but hardcoded the LLM and embedder to OpenAI with no env var override path. This meant users could not switch to Ollama or other providers via .env or
docker-compose.yml — the only way was through the database config API.
This PR adds env var detection for LLM and embedder providers following the exact same pattern already used for vector stores, and consolidates Docker URL fixing to cover both env-var and DB
config paths.
Supported env vars:
Config precedence: env vars set defaults → DB config overrides → Docker URL fixing → env:VAR resolution
Fixes #4194
Type of change
Checklist:
Maintainer Checklist