| # LLM backend: | |
| # huggingface_inference = HF InferenceClient (local dev, uses HF_TOKEN below) | |
| # zerogpu = @spaces.GPU + transformers (HF Space deploy only) | |
| LLM_BACKEND=huggingface_inference | |
| # Primary model for HF Inference (local dev). openbmb/MiniCPM4.1-8B-Instruct is | |
| # the ZeroGPU target but returns "Bad request" on free serverless tier. | |
| # Qwen/Qwen2.5-7B-Instruct is the confirmed-working free-tier model. | |
| HF_MODEL=Qwen/Qwen2.5-7B-Instruct | |
| HF_FALLBACK_MODEL=Qwen/Qwen2.5-7B-Instruct | |
| # HF credentials (get from huggingface.co/settings/tokens) | |
| HF_TOKEN= | |
| # OpenBMB legacy (vision API fallback; text endpoint is dead) | |
| MINICPM_API_BASE=http://35.203.155.71:8001/v1 | |
| MINICPM_VISION_BASE=http://35.203.155.71:8003/v1 | |
| MINICPM_API_KEY= | |
| # Local Postgres (Docker Compose overrides DATABASE_URL to use service name 'db') | |
| POSTGRES_PASSWORD=localdevpassword | |
| DATABASE_URL=postgresql://postgres:localdevpassword@db:5432/frenchcoach | |