Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 748 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 748 Bytes

GPT-3-in-Production

For https://www.oreilly.com/live-events/gpt-3-in-production/0636920065944/

javascript

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

Installation

  1. add .env to /javascript with your OPENAI_API_KEY
  2. npm install
  3. node index.js

python

Shows how to do search using the OpenAI API Python Library

https://github.com/bramses/GPT-3-in-Production/blob/master/python/search.py

Installation

  1. add .env to root directory with your OPENAI_API_KEY
  2. cd python
  3. python3 -m venv .venv
  4. source .venv/bin/activate
  5. pip install -r requirements.txt
  6. python3 search.py