Skip to content

An example of how to use Open AI playground via the python API

License

Notifications You must be signed in to change notification settings

ald0405/openai_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An example of how to use Open AI playground via the python API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages