This is a Next.js app that demonstrates how to build a chat UI using the Mixtral 8x7b language model and Replicate's streaming API.
Here's a demo:
llama-demo.mp4
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 your browser.
For detailed instructions on how to create and use this template, see replicate.com/docs/get-started/nextjs