A clone of the original ChatGPT Website, using localStorage features instead of database to store chat history.
This project is for educational purposes only.
- Handling server sent events using ReadableStream
- Light & Dark Theme
- Convert .txt to text input
- Save chat history using localStorage
- Markdown support
- [v1.1.0] Speech Recognition API for converting voice into chats
- [v1.2.0] Convert .pdf to text input
- Copy text to clipboard
- Clone this repository
git clone https://github.com/ervin-sungkono/ChatGPT-Clone.git
- Setup env variables
cp .env.example .env
Variable | Description |
---|---|
API_URL |
Your OpenAI API endpoint |
OPENAI_KEY |
Your OpenAI API key |
NEXT_PUBLIC_SPEECHLY_APP_ID |
For speech to text polyfill (optional but recommended), you can get it here |
- Install dependency
npm install
- Run the app
npm run dev
This project is deployed using Vercel, click here to see the result.