https://github.com/replicate/llama-chat
A boilerplate for creating a Llama 3 chat app
https://github.com/replicate/llama-chat
Last synced: 9 months ago
JSON representation
A boilerplate for creating a Llama 3 chat app
- Host: GitHub
- URL: https://github.com/replicate/llama-chat
- Owner: replicate
- License: apache-2.0
- Created: 2023-07-17T19:00:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-12T16:10:06.000Z (over 1 year ago)
- Last Synced: 2025-04-08T13:12:26.810Z (10 months ago)
- Language: JavaScript
- Homepage: https://llama3.replicate.dev
- Size: 2.72 MB
- Stars: 838
- Watchers: 26
- Forks: 318
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Llama Chat 🦙
This is a [Next.js](https://nextjs.org/) app that demonstrates how to build a chat UI using the [Llama 3](https://replicate.com/meta/llama-3-70b-chat) language model and Replicate's [streaming API (private beta)](https://replicate.com/docs/streaming).
Here's a demo:
https://github.com/replicate/llama-chat/assets/14149230/e700b256-dc34-4c4e-b912-8a84ec4bec6a
## Usage
Install dependencies:
```console
npm install
```
Add your [Replicate API token](https://replicate.com/account#token) to `.env.local`:
```
REPLICATE_API_TOKEN=
```
Run the development server:
```console
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser.
For detailed instructions on how to create and use this template, see [replicate.com/docs/get-started/nextjs](https://replicate.com/docs/get-started/nextjs)