This Repo is a nextjs application that communicates with a nestJS backend. It uses the OpenAI API to make completion requests based on user chat history. It is based off the vercel ai-chatgpt repo. The backend for this application lives here.
- Next.js
- OpenAI API (REST endpoint)
- API Routes (NestJS Backend)
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.
- Author - Shagun Mistry
- Author - Alex LeBron