Closed shrx closed 1 year ago
After checking it for a while, I noticed that the auth token keeps changing
I think it's related to your problem, try to check your session token expires.
Indeed it looks to be changing constantly, but it's not expiring: Expires / Max-Age:"Thu, 05 Jan 2023 08:41:24 GMT"
Indeed it looks to be changing constantly, but it's not expiring: Expires / Max-Age:"Thu, 05 Jan 2023 08:41:24 GMT"
It's weird... I wonder if chatGPT has an additional security mechanism that makes the token not work even though it has not expired...
I tried authenticating using the https://github.com/transitive-bullshit/chatgpt-api project and that demo works, so it looks like an issue with this project.
I tried authenticating using the https://github.com/transitive-bullshit/chatgpt-api project and that demo works, so it looks like an issue with this project.
Maybe the API is sensitive to the user agent passed along? chatgpt-api passes a user agent while commitgpt is missing it.
chatgpt-api is using 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36'
by default.
@lukasnagl indeed, a curl request with this user agent does not fail.
Should be fixed by https://github.com/RomanHotsiy/commitgpt/pull/4
Pasting the auth token into commitgpt returns the message: "Invalid token. Please try again."
I did an equivalent
curl
request and the response is: