A full-featured AI chat app built with Django and OpenAI — with conversation history, multiple models, and a beautiful dark UI.
- Real-time chat with OpenAI (GPT-4o, GPT-4o Mini, GPT-3.5)
- Conversation history (stored in SQLite)
- Multiple conversations with sidebar navigation
- Works without an API key (demo mode)
- Dark mode UI with typing animation
- Markdown rendering in responses
| Method | URL | Description |
|---|---|---|
| GET | / | Chat UI page |
| POST | /api/chat/ | Send a message |
| GET | /api/history/<session_id>/ | Load a conversation |
| GET | /api/conversations/ | List all conversations |
| DELETE | /api/delete/<session_id>/ | Delete a conversation |
| GET | /admin/ | Django admin panel |