# MemDream — runtime dependencies
#
# pyproject.toml is the source of truth; this file mirrors it for anyone who
# prefers `pip install -r`. Either works:
#
#     pip install -r requirements.txt
#     pip install .
#
# Version floors, not pins. This is a library as well as a service, so pinning
# exact versions here would force them on anything that installs alongside it.
# For a reproducible deployment, pin in your own lock file or let Docker do it.

# --- web layer ---------------------------------------------------------------
fastapi>=0.111
uvicorn[standard]>=0.30

# --- models and configuration ------------------------------------------------
pydantic>=2.7
pydantic-settings>=2.3
PyYAML>=6.0
python-dotenv>=1.0

# --- MongoDB: canonical store ------------------------------------------------
motor>=3.4
pymongo>=4.7
# In-process stand-in behind `database="memory"` — no server needed.
mongomock-motor>=0.0.29

# --- FAISS: vector index -----------------------------------------------------
# faiss-cpu ships manylinux/macOS/Windows wheels. On Linux it needs libgomp1 at
# runtime, which the Dockerfile installs.
faiss-cpu>=1.8
numpy>=1.26

# --- providers ---------------------------------------------------------------
# One package covers OpenAI, Azure OpenAI, Ollama, Together, Fireworks and
# any other endpoint speaking the OpenAI wire format.
openai>=1.40
httpx>=0.27

# Gemini and Anthropic each need their own SDK, because neither can guarantee
# JSON output through the OpenAI-compatible path. Uncomment the one you use, or
# install the matching extra:
#
#   pip install memdream[gemini]
#   pip install memdream[anthropic]
#
# google-genai>=1.0
# anthropic>=0.40

# --- operational -------------------------------------------------------------
structlog>=24.1
tenacity>=8.3
# Cross-process lock guarding FAISS writes between the API and the worker.
filelock>=3.14
