Fork the repository (For first time)
git clone https://github.com/ArnabBCA/ChatGPT.gitInstall dependencies:
npm installCreate a new .env.local file in the root folder Add add the following:
GEMINI_API_KEY=(YOUR KEY)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=(YOUR KEY)
CLERK_SECRET_KEY=(YOUR KEY)
MONGODB_URI=(YOUR KEY)
UPLOADCARE_SECRET_KEY=(YOUR KEY)
NEXT_PUBLIC_UPLOADCARE_PUB_KEY=(YOUR KEY)
MEM0_API_KEY=(YOUR KEY)
NEXT_PUBLIC_MAX_TOKEN_CONTEXT_WINDOW=10000 #ANY VALUE DEFAULT is 10000
NEXT_PUBLIC_ENABLE_MAX_TOKEN_CONTEXT_WINDOW=false #DEFAULT is falseRun the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
β
Integrated Vercel AI SDK:
β
Gemini AI
β
Added memory using mem0.ai
β
Max Token Contex Window Handling
β
MongoDB for message Storage
β
Supports file and image uploads to the AI
β
Message History and Message persistence
β
Clerk Authentication
β
Uploadcare for file uploading and storage
β
Edit Messages and Regeneration
β
ChatGPT like UI and Animations
β
Delete Chat