I thought I’d play around with some python connected to GPT-3.
I am getting the following after launching jupyter notebook on my machine, after doing pip install openai (which reports back that openai is installed correctly)
I reviewed many online resources, but all assume that “import openai” works. Such as
the official one from OpenAI:
Has anyone seen this behavior? Maybe it is a jupyter thing. I tried a general Google search as well with no luck (although there were some links to Gym). Relaunching jupyter didn’t solve it.
The basic solution was to make things consistent, as was suggested. I did 'conda install jupyter" because I was using another version of jupyter (which jupyter). Then I obtained an error in authorization, so I went with the traceback suggestion of
openai.api_key = "key"
rather than
# openai.api_key = os.getenv("key")
Now I am getting useful Json. Now to parse it for something meaningful.