--- title: AI Team Chat Backend emoji: 🤖 colorFrom: blue colorTo: purple sdk: docker pinned: false --- # AI Team Chat — Backend API FastAPI backend powering the AI Team Chat app. ## Environment Variables (set in HF Spaces → Settings → Secrets) | Variable | Description | |---|---| | `GROQ_API_KEY` | Your Groq API key | | `OPENAI_API_KEY` | Your OpenAI API key (optional) | | `SUPABASE_URL` | Your Supabase project URL | | `SUPABASE_KEY` | Your Supabase anon/service key | ## Endpoints - `POST /chat` — Main chat endpoint - `GET /history/{session_id}` — Fetch session history - `GET /health` — Health check