Next.js + OpenAI API ChatGPT, This example shows how to implement a simple chat bot using Next.js and OpenAI API.
March 15th, 2023

About:
Next.js + OpenAI API ChatGPT, This example shows how to implement a simple chat bot using Next.js and OpenAI API.
Technologies Used:
README.md:
Set up environment variables
- rename .env.example to .env.local:
cp .env.example .env.local
- update OPENAI_API_KEY with your OpenAI secret key.
OPENAI_API_KEY = xxxxx;
Development
npm install npm run dev # or yarn yarn dev
View the app at http://localhost:3000