chatgpt-on-wechat icon indicating copy to clipboard operation
chatgpt-on-wechat copied to clipboard

画图会报错

Open wangken82 opened this issue 1 year ago • 1 comments

[INFO][2023-02-06 12:32:52][open_ai_bot.py:60] - [OPEN_AI] image_query=一只老虎 [ERROR][2023-02-06 12:32:52][open_ai_bot.py:69] - module 'openai' has no attribute 'Image' Traceback (most recent call last): File "/chatgpt/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 61, in create_img response = openai.Image.create( AttributeError: module 'openai' has no attribute 'Image'

wangken82 avatar Feb 06 '23 12:02 wangken82

你的openai版本是多少,需要是 0.25.0 以上才能支持画图

zhayujie avatar Feb 06 '23 12:02 zhayujie

查看openai当前版本:

pip3 show openai

注意要使用 用来运行程序的python 下的 pip

zhayujie avatar Feb 07 '23 02:02 zhayujie

你的openai版本是多少,需要是 0.25.0 以上才能支持画图 我的 Version: 0.8.0 也不行 报错 ] - module 'openai' has no attribute 'Image' Traceback (most recent call last): File "/root/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 72, in create_img response = openai.Image.create( AttributeError: module 'openai' has no attribute 'Image'

xiao-rao avatar Feb 12 '23 10:02 xiao-rao

你的openai版本是多少,需要是 0.25.0 以上才能支持画图 我的 Version: 0.8.0 也不行 报错 ] - module 'openai' has no attribute 'Image' Traceback (most recent call last): File "/root/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 72, in create_img response = openai.Image.create( AttributeError: module 'openai' has no attribute 'Image'

0.8.0 不够,需要升级

zhayujie avatar Feb 12 '23 11:02 zhayujie

@zhayujie 怎么升级版本啊,我发现pip的镜像网站里面没有这个版本的openai了

BadwomenzzzZ avatar Feb 15 '23 05:02 BadwomenzzzZ

@zhayujie 怎么升级版本啊,我发现pip的镜像网站里面没有这个版本的openai了

pip3 install --upgrade openai -i https://pypi.tuna.tsinghua.edu.cn/simple

zhayujie avatar Feb 15 '23 18:02 zhayujie