Skip to content

replicate/llama-chat

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
July 17, 2023 15:00
July 17, 2023 15:00
July 28, 2023 14:17
July 27, 2023 17:01
July 17, 2023 15:00
July 17, 2023 15:00
December 1, 2023 16:45
July 28, 2023 15:40
July 17, 2023 15:00
July 17, 2023 15:00
July 26, 2023 13:44

Llama Chat 🦙

This is a Next.js app that demonstrates how to build a chat UI using the Llama 2 language model and Replicate's streaming API (private beta).

Here's a demo:

llama-demo.mp4

Usage

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