Skip to content

Latest commit

Β 

History

History
56 lines (39 loc) Β· 1.24 KB

File metadata and controls

56 lines (39 loc) Β· 1.24 KB

Getting Started

Fork the repository (For first time)

git clone https://github.com/ArnabBCA/ChatGPT.git

Install dependencies:

npm install

Create 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 false

Run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

🌟 Features

βœ… 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