A simple chat bot using Next.js, API Routes, and OpenAI API.
- Next.js
- OpenAI API (REST endpoint)
- API Routes (Edge runtime)
https://ai-gpt3-chatbot-oh5ynh7vd-junglelab.vercel.app
Rename .env.example
to .env.local
:
cp .env.example .env.local
then, update OPENAI_API_KEY
with your OpenAI secret key.
Next, run Next.js in development mode:
npm install
npm run dev
# or
yarn
yarn dev
The app should be up and running at http://localhost:3000.