vitrannhat/Melstore
0
Feli Studio AI Server
This FastAPI service only runs AI and notification workloads. Database reads and writes live in the Next.js frontend API routes.
Environment
Create backend/.env:
GEMINI_API_KEY=your_key
OPENAI_API_KEY=
PHI4_API_KEY=
PHI4_RESONING_API_KEY=
OLLAMA_BASE_URL=http://localhost:11434
CORS_ORIGINS=http://localhost:3000
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=Do not configure DATABASE_URL here. The frontend owns database access.
Run
pip install -e .
uvicorn app.main:app --reload --port 8000Endpoints
GET /healthGET /api/model-catalogPOST /api/test-modelPOST /api/chatPOST /api/notify
POST /api/chat expects the frontend to send settings and context payloads with product, policy, voucher, and studio profile data.
