ChatGPT
ChatGPT copied to clipboard
[BUG]KeyError: 'accessToken'
self.access_token = response.json()["accessToken"]
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'accessToken'
me too
Check latest version
https://github.com/acheong08/OpenAIAuth/releases/tag/0.1.1
I updated the version, but there is a new error: print(line["choices"][0]["text"].replace("<|im_end|>", ""), end="") ~~~~^^^^^^^^^^^ TypeError: string indices must be integers, not 'str'
self.access_token = response.json()["accessToken"] ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'accessToken'
https://github.com/acheong08/ChatGPT/pull/680
Print the full line please
Okay, I printed the whole line and this problem "Error... Logging in again", what is the cause of this problem?