This project is a Next.js application that demonstrates how to build a chatbot UI using the Llama 3 language model and Replicate's streaming API (private beta).
- Install Node.js (Minimum Version : 18.17.0 to support Next JS)
- Pull this repository to your local machine
- Create a file called
.env.local
in the project's root directory
- Install dependencies:
npm install
- Add your Replicate API token to
.env.local
:
REPLICATE_API_TOKEN=<your-token-here>
- Run the development server:
npm run dev
- Open http://localhost:3000 with a web browser.