You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR][2023-03-06 11:20:51][wechat_channel.py:121] - module 'openai.error' has no attribute 'Timeout'
Traceback (most recent call last):
File "/opt/chatgpt/bot/chatgpt/chat_gpt_bot.py", line 60, in reply_text
response = openai.ChatCompletion.create(
AttributeError: module 'openai' has no attribute 'ChatCompletion'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/chatgpt/channel/wechat/wechat_channel.py", line 117, in _do_send
reply_text = super().build_reply_content(query, context)
File "/opt/chatgpt/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/opt/chatgpt/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("chatGPT").reply(query, context)
File "/opt/chatgpt/bot/chatgpt/chat_gpt_bot.py", line 42, in reply
reply_content = self.reply_text(new_query, from_user_id, 0)
File "/opt/chatgpt/bot/chatgpt/chat_gpt_bot.py", line 87, in reply_text
except openai.error.Timeout as e:
AttributeError: module 'openai.error' has no attribute 'Timeout'
环境
操作系统类型 :linux-centos7.9
Python版本: python3.6.8
pip版本:pip 9.0.3
实例中的部署路径:/opt/chatgpt
The text was updated successfully, but these errors were encountered:
GZYZhy
changed the title
运行报错:module 'openai.error' has no attribute 'Timeout'
运行报错:module 'openai.error' has no attribute 'Timeout'等“找不到”问题
Mar 6, 2023
GZYZhy
changed the title
运行报错:module 'openai.error' has no attribute 'Timeout'等“找不到”问题
运行报错:module 'openai.error' has no attribute 'Timeout'等“找不到属性”问题
Mar 6, 2023
问题:
成功部署并登陆微信账号后,收到消息时报错:
环境
The text was updated successfully, but these errors were encountered: