Closed CoderGreensparrow closed 1 year ago
There shouldn't be 2 session tokens, and I see you're initializing the class correctly, so the error is because of the session token indeed. Go to your browser settings and clear all data and cookies from the ChatGPT website, perhaps even OpenAI as a whole. Then login again and try to get the session token, there should be one only. Lemme know if that works.
As you can see, for me there is only one session-token cookie, which is how it should be. (Ignore callback-url, that one is not required by the library)
Weird... I mostly use Librewolf and just installed Google Chrome back on my laptop today. I cleared cookies and website data in both (EVERY site data, so even google stuff get's deleted, because I don't know what's causing this), the session tokens were still there. I even opened it up in ungoogled-chromium (which I don't use a lot) in a guest instance and tried there. Same thing.
Maybe there's something with my OpenAI account?
That's really weird, perhaps it's your account yeah. Could you try with a different account? This is my first time seeing an account with two session tokens.
I just started making an account today (whose setup I didn't finish) with another email. I finished that and that has one session token! I don't know what I did to have two. Now the session token works it looks like and now the program is breaking differently. I'll look into it. Thanks for the help! :)
Sure! If you face an issue with the library don't hesitate to make another issue!
I am a free user of ChatGPT through a google account login. When I looked at the cookies, there were two cookies starting with "Secure-next-auth.session-token": Secure-next-auth.session-token.1 __Secure-next-auth.session-token.0 Neither works when inputted as the session token. My code (it's for a project):
ValueError after using token.0: