File size: 1,459 Bytes
8eaa451
 
 
 
 
 
 
ae6f621
 
 
 
8eaa451
dce8f48
 
 
 
 
 
 
 
8eaa451
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# ══════════════════════════════════════════════════════════════
# DeepMed-AI — Environment Variables
# Copy this to .env and fill in your values
# ══════════════════════════════════════════════════════════════

# Required: Google Gemini API Key (primary LLM)
GOOGLE_API_KEY=your_google_api_key_here
# Optional: Multiple Gemini keys for rotation (comma-separated)
# When key1 hits rate limit → auto-switch to key2 → key3...
# Each free key ~1500 RPD, 3 keys = ~4500 RPD
# GOOGLE_API_KEYS=key1,key2,key3

# Optional: NVIDIA Build API Key (fallback LLM — auto-switches when Gemini quota exhausted)
# Get free key at https://build.nvidia.com/
NVIDIA_API_KEY=your_nvidia_api_key_here
NVIDIA_MODEL=deepseek-ai/deepseek-v3.2

# Legacy: OpenRouter (deprecated — use NVIDIA_API_KEY instead)
# OPENROUTER_API_KEY=your_openrouter_api_key_here
# OPENROUTER_MODEL=qwen/qwen3-235b-a22b:free

# Optional: Force rebuild ChromaDB on startup (default: False)
# Set to True when data files change
FORCE_REBUILD_DB=False

# Optional: Override default paths
# DATA_DIR=/app/backend/data
# CHROMA_DB_PATH=/app/backend/storage/chroma_db
# CHAT_DB_PATH=/app/backend/storage/chat_db/medigenius.db
# LOG_DIR=/app/backend/logs