ThinkGPT is a modern AI chat application inspired by Google Gemini.
It uses the latest Google Generative AI API to generate fast, smart, and natural responses — similar to Gemini chat experience.
Built using React, this project focuses on real-time streaming replies, smooth loading effects, and a clean UI design.
- 🚀 Gemini 2.5 Flash model integration
- 💬 Real-time streaming responses
- 📌 Maintains recent prompt history
- ⚡ Optimized rendering using Context + Memoization
- 🔐 Secure API key stored in
.env - 🎨 Simple and elegant UI design
| Technology | Role |
|---|---|
| React + Vite | Frontend Framework |
| Google Generative AI SDK | Connect with Gemini Model |
| Context API | Global State Management |
| CSS | Styling |
Create a .env file in the project root:
VITE_GEMINI_API_KEY = your_api_key_here
You can get the API key for free from Google AI Studio
Install dependencies:
npm installStart development server:
npm run dev