A Next.js app that allows users to chat with AI using the OpenAI API. Features:
- Create and collaborate on projects.
- Chat with files added to the same folder.
- Add files to your messages.
- Receive messages in a stream.
- View messages in markdown with code syntax highlighting.
- Resend, edit, remove and copy messages.
- Categorize and save chats (to a MongoDB database).
-
Add the missing variables to the .env.example file.
-
Rename .env.example to .env.local. You can do this by running the following command in the root directory of this app.
mv .env.example .env.local
- Run the following command in the root directory (ai-utils).
docker-compose up
- Go to http://localhost:3000/ to start chatting.
- Install the dependencies by running the following command in the ai-utils directory.
pnpm install
-
Go to the ai-chat directory and add the missing variables to the .env.example file.
-
Rename .env.example to .env.local. You can do this by running the following command in the root directory of this app.
mv .env.example .env.local
- Run the following command to run ai-chat.
pnpm run dev
- Go to http://localhost:3000/ to start chatting.
If you're interested in contributing, please read the contributing docs before submitting a pull request.
This app is licensed under the MIT License. See LICENSE for more information.