wechat-chatgpt yaml文件里用账号和密码,出现以下错误,求助

4nkexdtk  于 2023-02-16  发布在  其他
关注(0)|答案(3)|浏览(161)

Start GPT Bot Config is:{"chatGPTAccountPool":[{"email":"我的账号","password":"我的密码"}],"chatGptRetryTimes":3,"chatPrivateTiggerKeyword":""}
uncaughtException Error: Command failed with exit code 1: sh -c poetry run python3 src/generate_session.py 账号 密码
Traceback (most recent call last):
File "/app/src/generate_session.py", line 50, in
print(login(args.email, args.password))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/generate_session.py", line 19, in login
chatbot = Chatbot(
^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 62, in init
self.refresh_session()
File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 296, in refresh_session
raise exc
File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 293, in refresh_session
self.login(self.config["email"], self.config["password"])
File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 326, in login
raise exc
File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 319, in login
auth.begin()
File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/OpenAIAuth/OpenAIAuth.py", line 90, in begin
raise Exception("API error")
Exception: API error

相关问题