This is a template for an AI chatbot using Next.js + the Vercel AI SDK + Together AI in ~250 LOC.
- Together.ai for the LLM
- Vercel's AI SDK as the LLM framework
- Next.js app router
- Fork or clone the repo
- Create an account at Together AI & save your Together API key in
.env(use the.example.envfor reference) - Run
npm installandnpm run devto install dependencies and run locally