https://github.com/lgrammel/ollama-nextjs-chatbot
Next.js, Vercel AI SDK & Ollama chatbot starter example
https://github.com/lgrammel/ollama-nextjs-chatbot
Last synced: 6 months ago
JSON representation
Next.js, Vercel AI SDK & Ollama chatbot starter example
- Host: GitHub
- URL: https://github.com/lgrammel/ollama-nextjs-chatbot
- Owner: lgrammel
- License: mit
- Created: 2024-05-11T09:27:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-11T09:55:28.000Z (over 1 year ago)
- Last Synced: 2025-03-28T19:12:37.477Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 60.5 KB
- Stars: 33
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Next.js, Vercel AI SDK & Ollama chatbot
This starter example shows how to use [Next.js](https://nextjs.org/), the [Vercel AI SDK](https://sdk.vercel.ai/docs), [Ollama](https://ollama.ai/) and the [Ollama AI Provider](https://github.com/sgomez/ollama-ai-provider) to create a ChatGPT-like AI-powered streaming chat bot.
## Setup
1. Install [Ollama](https://ollama.ai/) on your machine.
1. Pull the model: `ollama pull llama3` ([reference](https://ollama.ai/library/llama3))
1. Clone the repository: `git clone https://github.com/lgrammel/ollama-nextjs-chatbot.git`
1. Install dependencies: `npm install`
1. Start the development server: `npm run dev`
1. Go to http://localhost:3000/
1. Code: `app/api/chat/route.ts` and `app/page.tsx`