This is an implementation adapted from the official OpenAI Node quickstart
You can choose whichever deployment target you want, this example uses Netlify.
You'll need an OpenAI API key.
cp .env.sample .env
Add your API key to .env.
npm install
npm run dev