The ChatGPT clone uses chat completion v1 API with your gpt model and express.js to run a server requesting client-side requests.
Copy all variables from .env.example
to new created .env
file and change the appropriate variables with your values. You can get all necessary data at Platform OpenAI.
Install dependencies.
npm i
Start backend server with nodemon.
npm run dev:back
Start frontend server with vite.
npm run dev:front