This is a starter code you can clone to build your first AI project in JavaScript✊
Create a .env
file and add your API key there.
Simply write OPENAI_API_KEY=<your_api_key>
(replace <your_api_key> with your key).
To setup the app run:
yarn && yarn start
You will only need to do it the first time to install all the dependencies. Next time you want to run the app, simply enter:
yarn start
This will open the app in development mode. Visit http://localhost:3000 to view it in your browser.