For https://www.oreilly.com/live-events/gpt-3-in-production/0636920065944/
Shows how to do completions
using the OpenAI API Node JS community library
https://github.com/bramses/GPT-3-in-Production/blob/master/javascript/index.js
- add
.env
to/javascript
with yourOPENAI_API_KEY
npm install
node index.js
Shows how to do search
using the OpenAI API Python Library
https://github.com/bramses/GPT-3-in-Production/blob/master/python/search.py
- add
.env
toroot directory
with yourOPENAI_API_KEY
cd python
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python3 search.py