To list all the available OpenAI models you can use the models() method of the openai package.
Here's the code to do so:
main.py186 chars12 lines
This will give you a list of all the available OpenAI models, such as text-davinci-002, davinci-codex, curie, etc. If you don't have an API key, you can sign up for one on the OpenAI website.
gistlibby LogSnag