RockChinQ / revLibs

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

[Bug]: ValueError: PUID is required #210

Closed dd4897 closed 1 year ago

dd4897 commented 1 year ago

部署方式

手动部署

登录框架

None

系统环境

revGPT5.0.0

Python环境

python3.10

异常情况

@logger(is_timed=True) def login(self) -> None: """Login to OpenAI by email and password""" if not self.config.get("email") and not self.config.get("password"): log.error("Insufficient login details provided!") error = t.AuthenticationError("Insufficient login details provided!") raise error auth = Authenticator( email_address=self.config.get("email"), password=self.config.get("password"), proxy=self.config.get("proxy"), ) log.debug("Using authenticator to get access token") auth.begin() auth.get_access_token()

    self.set_access_token(auth.access_token)

   改了源码函数的第一行但是我目前会报这个ValueError: PUID is required

我需要用账号密码登录,获取access_token,请问有什么好的方式!

报错信息

File "D:\python3.10\lib\site-packages\OpenAIAuth.py", line 38, in init raise ValueError("PUID is required") ValueError: PUID is required

RockChinQ commented 1 year ago

目前不可使用账密登录,请严格按照文档指引进行配置

dd4897 commented 1 year ago

目前不可使用账密登录,请严格按照文档指引进行配置

请问,账号密码登录暂时一点希望都没有了吗? 或者是revGPT版本不一样,我是5.0.0 之前几天还是可以用账号密码登录的!

RockChinQ commented 1 year ago

目前不可使用账密登录,请严格按照文档指引进行配置

请问,账号密码登录暂时一点希望都没有了吗? 或者是revGPT版本不一样,我是5.0.0 之前几天还是可以用账号密码登录的!

不是我的问题,请转到 acheong08/ChatGPT