#openai version 1.0.1 has no attribute Image

1 messages · Page 1 of 1 (latest)

thorny totem
#

Trying to reproduce image generation examples, I get the above error. I ran pip install --upgrade openai, but 1.0.1 seems to be the latest version.

thorny totem
#

AttributeError: module 'openai' has no attribute 'Image'

hybrid karma
thorny totem
hybrid karma
thorny totem
#

can you print openai.__version__ and see what it outputs?

hybrid karma
hybrid karma
thorny totem
#

ok, I think I may be getting the openai library from the wrong place

hybrid karma
#

I just did pip install openai

thorny totem
#

I'm also installing it with pip but I get version 1.0.1, so maybe the source repository is different

#

and it does mention version 1.0.1 as the latest, but the code examples are completely different from the API examples

#

ok, apparently 1.x is a new version

#

pip install openai==0.28.1 works fine

hybrid karma
thorny totem
#

yes, it's working now

#

thanks for your help