Exploring the Node.js library of ChatGPT (OpenAI).
You need to obtain an API key by registering in the OpenAI website. You can follow this link for a detailed step by step on how to obatin it.
To run this project, you will need to add the following environment variable to your .env file and add your API key value
OPENAI_API_KEY="{your_api_key}"
Install dependencies
npm install
Start the server
npm start