This is an easy and convenient Ai chatbox that you can connect to major ai models directly with a working api.
This project is based on React + Vite and JavaScript, with dual backend support (Node.js/Express and Python/FastAPI). Contact richard.yiqun.li@outlook.com for any questions related.
- Real-time live chat with AI models
- Standalone Product with Front and Back-end
- Dual Backend Support: Choose between Node.js/Express and Python/FastAPI
- Model Prompts Customization (check .env.example file in backend folder)
- Tailwind CSS templates
- Easy to re-model and plug in to your own website
- Install Requirements
cd frontend
npm installOption 1: Node.js Backend
cd backend-nodejs
npm install
# Development
npm run dev
# Production
npm startOption 2: Python FastAPI Backend(v1.3.0 update)
cd backend-fastapi
# Create virtual environment (recommended)
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # Mac/Linux
# Install dependencies
pip install -r requirements.txt
# Run
python run.pyPlease check .env.example files in respective backend folders:
backend-nodejs/.env.examplefor Node.js versionbackend-fastapi/.env.examplefor FastAPI version
Note: Both backends provide identical API interfaces, so you can switch between them without changing your frontend code.
v1.1.0 updated Now you can customize avatar in the frontend/image folder. Make sure to upload picture with name "avatar.jpg".
With default or customized model prompts, you can setup the model with own config answers.
Default model - deepseek-chat Default prompts -
# DEEPSEEK_PROMPT=You are a helpful AI assistant specializing in deep reasoning and analytical thinking.
# CREATIVE_PROMPT=You are a creative writing assistant. Be imaginative, expressive, and engaging.
# TECHNICAL_PROMPT=You are a technical expert. Provide clear, practical solutions with code examples.
# GENERAL_PROMPT=You are a helpful, friendly AI assistant. Provide balanced, informative responses.
You can choose your desirable AI model from this drop-down menu. (In order to set up these models please check MODEL_PROMPTS in ChatPage.jsx)
