This is a basic example of how you can use the OPEN AI Python API
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 environmentpip 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.