a chatgpt.com ui clone! 
- usable without key
- support for all models
- add your own token for higher rate limits
- image generation support
- image upload support
- file upload support (bucky)
- title generation
- gravatar pfp
- search through your chats
- model dropdown
- responsive
use the hosted version by me! hatgpt.vercel.app
deploy to vercel!
- clone the repo (duh)
- install with
npm install cp .env.example .envand add your HackAI token asPUBLIC_API_KEY(for public usage)- run the app with
npm start - open
http://localhost:3000and start chatting
you might want to do
- run
npm run bs
to let BrowserSync reload the page for you at http://localhost:3001
api/ai- SSE proxy with some cleanupapi/title- title generation w/ first message as input- removed this due to the lack of timeapi/upload- uploading file to buckyapi/status- HackAI modelsapi/models- proxy to HackAI models
- chat functionality
- model dropdown
- title generation
- attachments
- HackAI status
- rate limit for public key (2 per minute?)
- title generation with public key
- test image upload - end up removing it
- test file upload - same as above
- test image generation
- phone view top bar styling
- phone view sidebar > settings close it
- center 'Ask anything' text
AI declaration
so i used ai to help me with the rest wich is declared here (grabbed from my chats):
- textarea resizing when more than 1 line
- model dropdown functionality
- chat functionality
- dynamic script loading
- saving api key to local storage
- simplifying SSE code
- implementing chat history
- chat savings and title generation
- ui enhancements for api key modal
- search chats
- blinking dot
- gravatar pfp
- scroll behavior
- helping with system prompt
- selected text
- file upload
- title with public key
- rate limiting
- removing image upload
- image generation deletion
- image generation style fix
- auto close mobile sidebar on settings open
- mobile styling
- message under input
- centering 'Ask anything' text

