Spaces:
Paused
Paused
Commit History
-
fix: bake LLM/embedder config into Dockerfile ENV β no DB neededβ
Config sebelumnya hanya tersimpan di DB (Settings.config_overrides) sehingga hilang kalau Postgres belum siap saat initialize_state() dipanggil. Solusi: baca config dari env var (MEM0_LLM_*, MEM0_EMBEDDER_*) yang di-set langsung di Dockerfile. DEFAULT_CONFIG sudah benar dari image build time tanpa perlu DB. DB override tetap bekerja untuk perubahan dinamis via /api/configure.0b25cc0 -
fix: retry DB load on startup β wait up to 60s for Postgres crash recoveryβ
HF FUSE needs ~90s for Postgres crash recovery. initialize_state() was called at module import time and _load_overrides() silently returned {} if DB wasn't ready yet, dropping all saved config overrides. Now retries every 5s up to 12x (60s), stopping early once DB confirms reachable but no overrides stored.d9cf3d7
-
fix: fresh-deploy crash β placeholder API key + alembic on bootβ
- main.py: OPENAI_API_KEY falls back to placeholder so Memory.from_config doesn't raise OpenAIError at import when no key is configured yet (root cause of mem0-api FATAL loop on fresh HF Space) - entrypoint.sh: run alembic upgrade head after init-db.sh while PG is up, so mem0_app tables exist before uvicorn starts407d645 -
mem0 self-hosted: full deployment (auth fix, nginx routing, 9router LLM config)
5ec8557