nextjs-langchain-example
nextjs-langchain-example copied to clipboard
Demo of using LangChain.js with Next.js and Vercel Edge Functions (to stream the response)
Next.js x LangChain x Vercel Edge Functions
This basic demo shows that LangChain.js x Next.js and the Edge Runtime
To use, grab an OpenAI API key and rename the .env.local.example
to .env.local
.
git clone
pnpm i
pnpm dev