Sample repo using NodeJS to call ChatGPT OPENAI API.
How to run:
npm install
touch .env
Add this entry inside your .env file:
OPENAI_API_KEY="YOUR OPEN API KEY HERE"
Generate your OPEN API KEY from this link https://platform.openai.com/account/api-keys