GitXplorerGitXplorer
l

ollama-nextjs-chatbot

public
29 stars
4 forks
0 issues

Commits

List of commits on branch main.
Verified
e4cf174a0f36160f447387fb350d38f3fd74996d

Update README.md

llgrammel committed 4 months ago
Unverified
ea811db1cbb89a71fbcf51aac792399756d81974

Small refactoring.

llgrammel committed 4 months ago
Unverified
6de9b2002aba7bcc62ebb778f03f17ccc9bf783e

Rename to chatbot.

llgrammel committed 4 months ago
Unverified
29729b90ef58af4efcefe0caf64de5d5b8828f43

Add starter.

llgrammel committed 4 months ago
Verified
cbf926068b86265f999b329ffa93a1cfdcf9d45c

Initial commit

llgrammel committed 4 months ago

README

The README file for this repository.

Next.js, Vercel AI SDK & Ollama chatbot

This starter example shows how to use Next.js, the Vercel AI SDK, Ollama and the Ollama AI Provider to create a ChatGPT-like AI-powered streaming chat bot.

Setup

  1. Install Ollama on your machine.
  2. Pull the model: ollama pull llama3 (reference)
  3. Clone the repository: git clone https://github.com/lgrammel/ollama-nextjs-chatbot.git
  4. Install dependencies: npm install
  5. Start the development server: npm run dev
  6. Go to http://localhost:3000/
  7. Code: app/api/chat/route.ts and app/page.tsx