Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 979 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 979 Bytes

Open AI's PlayGround API

This is a basic example of how you can use the OPEN AI Python API Python

How to use

The high level steps are as follows

  • git clone repo
  • cd repo
  • pip install virtualenv (if you don't already have virtualenv installed)
  • virtualenv venv to create your new environment (called 'venv' here)
  • source venv/bin/activate to enter the virtual environment
  • pip install -r requirements.txt to install the requirements in the current environment
  • You will need to generate your own API secret from Open AI this is a free API for the most part if you are just playing about. You will incurr costs if you use it a lot. You can track your usage from the website

Funnily enough, I pretty much had Open AI guide me at each major step in setting up this repo, the venv and the creation of the script itself.