Closed ShilongJiao closed 1 year ago
I can not login v1 by email and password
The following is login code.
` def login(self) -> None: """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 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)
`
the problem is in if self.config.get("email") and self.config.get("password"):
if self.config.get("email") and self.config.get("password"):
maybe it is be fixed to
if !self.config.get("email") or !self.config.get("password"):
It will run well.
The newest version in 2023 05 24
3.11
MacOS
Nothing
No response
Yes, it has been broken for a while. I will translate the current Go code to Python when I get the time
Hey it's fixed
thank you for fixing it .
np. Credits to @pengzhile for the Python version
Is there an existing issue for this?
What happened?
I can not login v1 by email and password
Steps to reproduce the problem
The following is login code.
` def login(self) -> None: """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 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")
`
the problem is in
if self.config.get("email") and self.config.get("password"):
maybe it is be fixed to
if !self.config.get("email") or !self.config.get("password"):
It will run well.
What should have happened?
I can not login v1 by email and password
Version where the problem happens
The newest version in 2023 05 24
What Python version are you running this with?
3.11
What is your operating system ?
MacOS
Command Line Arguments
Console logs
Additional information
No response