MedChat / .env.example
=
feat: multi-key rotation for Gemini (3 keys) and Groq (3 keys)
8c4590b
# ─── Backend environment variables ───────────────────────────────────────────
# Copy this file to .env and fill in your values.
# For Render / HuggingFace Spaces: set these as environment secrets in the
# deployment dashboard β€” do NOT commit the actual .env to git.
# ── Groq API keys (free at console.groq.com) ──────────────────────────────
# Two keys enable round-robin rotation to stay within rate limits.
GROQ_API_KEY_1=gsk_your_first_key_here
GROQ_API_KEY_2=gsk_your_second_key_here
GROQ_API_KEY_3=gsk_your_third_key_here
GROQ_MODEL=llama-3.3-70b-versatile
# ── Google Gemini key (optional β€” used only if backend needs Gemini) ───────
GOOGLE_API_KEY=your_google_api_key_here
# ── CORS: comma-separated list of allowed frontend origins ────────────────
# Local dev: http://localhost:3000,http://localhost:5173
# Production: https://your-app.vercel.app
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
# ── Optional API key protection (leave blank to disable) ─────────────────
API_SECRET_KEY=