RockChinQ / revLibs

ChatGPT、Claude QQ 机器人,以插件形式为 QChatGPT 项目接入ChatGPT、Claude、Bard、gpt4free等接口的逆向工程库
209 stars 17 forks source link

使用acheong08/ChatGPT.V1版本逆向库账号密码登录报错 #138

Closed NiuHK closed 1 year ago

NiuHK commented 1 year ago

使用acheong08/ChatGPT.V1版本逆向库账号密码登录报错 账号密码填写如下:

openai_account = [ { "email": " ", # 账户邮箱 "password": " " # 账户密码 }, { "email": " ", # 账户邮箱 "password": " " # 账户密码 } ]

使用acheong08/ChatGPT.V1版本逆向库

我希望的情况是:正常登录使用

实际情况是:

报错:

[2023-05-04 22:53:57.545] V1.py (330) - [ERROR] : Insufficient login details provided! [2023-05-04 22:53:57.549] main.py (112) - [ERROR] : [rev] Traceback (most recent call last): File "D:\QQBot\QChatGPT.\plugins\revLibs\main.py", line 105, in normal_message_received reply_message = procmsg.process_message(session_name=kwargs['launchertype']+""+str(kwargs['launcher_id']), File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\procmsg.py", line 32, in process_message session: revss.RevSession = revss.get_session(session_name) File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\revss.py", line 132, in get_session sessions[name] = RevSession(name) File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\revss.py", line 45, in init self.rev_interface_impl, valid, acc = rev_interface_impl_class__.create_instance() File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\impls\v1impl.py", line 30, in create_instance return RevChatGPTV1(acc), valid_acc, acc File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\impls\v1impl.py", line 34, in init self.chatbot = Chatbot( File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 66, in wrapper out = func(*args, **kwargs) File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 177, in init self.check_credentials() File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 66, in wrapper out = func(*args, *kwargs) File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 198, in __check_credentials self.login() File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 66, in wrapper out = func(args, **kwargs) File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 332, in login raise error revChatGPT.typings.AuthenticationError: Insufficient login details provided!

报错为: QQBot\python\Lib\site-packages\revChatGPT\V1.py 328行: """Login to OpenAI by email and password""" if self.config.get("email") and self.config.get("password"): log.error("Insufficient login details provided!") error = t.AuthenticationError("Insufficient login details provided!") raise error

没太看懂,大致意思是同时有密码和账号就报错吗?(我是 fw) 另:将该段注释后报错为:

[2023-05-04 22:58:54.739] main.py (112) - [ERROR] : [rev] Traceback (most recent call last): File "D:\QQBot\QChatGPT.\plugins\revLibs\main.py", line 105, in normal_message_received reply_message = procmsg.process_message(session_name=kwargs['launchertype']+""+str(kwargs['launcher_id']), File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\procmsg.py", line 32, in process_message session: revss.RevSession = revss.get_session(session_name) File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\revss.py", line 132, in get_session sessions[name] = RevSession(name) File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\revss.py", line 45, in init self.rev_interface_impl, valid, acc = rev_interface_impl_class__.create_instance() File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\impls\v1impl.py", line 30, in create_instance return RevChatGPTV1(acc), valid_acc, acc File "D:\QQBot\QChatGPT.\plugins\revLibs\pkg\process\impls\v1impl.py", line 34, in init self.chatbot = Chatbot( File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 66, in wrapper out = func(*args, **kwargs) File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 177, in init self.check_credentials() File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 66, in wrapper out = func(*args, *kwargs) File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 198, in __check_credentials self.login() File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 66, in wrapper out = func(args, **kwargs) File "D:\QQBot\python\lib\site-packages\revChatGPT\V1.py", line 333, in login auth = Authenticator( File "D:\QQBot\python\lib\site-packages\OpenAIAuth.py", line 38, in init raise ValueError("PUID is required") ValueError: PUID is required

RockChinQ commented 1 year ago

现在不能用账密登录了,改换成access_token的登录方式吧,查看revcfg.py中的说明

NiuHK commented 1 year ago

现在不能用账密登录了,改换成access_token的登录方式吧,查看revcfg.py中的说明 谢谢!已经正常用上了😋