python的openai报错AttributeError: module 'openai' has no attribute 'Image'
#!/usr/local/python3/bin/python3 # -*- coding: utf-8 -* import openai openai.api_key = "openai-key" esponse = openai.Image.create( prompt="a white siamese cat", n=1, size="1024x1024" ) image_url = response['data'][0]['url']
网友回复