Skip to content

bramses/GPT-3-in-Production

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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