Coder Social home page Coder Social logo

Comments (8)

RomanHotsiy avatar RomanHotsiy commented on June 7, 2024 3

Should be fixed by #4

from commitgpt.

shrx avatar shrx commented on June 7, 2024 2

@lukasnagl indeed, a curl request with this user agent does not fail.

from commitgpt.

shrx avatar shrx commented on June 7, 2024 1

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.

from commitgpt.

lukasnagl avatar lukasnagl commented on June 7, 2024 1

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.

from commitgpt.

fzn0x avatar fzn0x commented on June 7, 2024

After checking it for a while, I noticed that the auth token keeps changing

from commitgpt.

fzn0x avatar fzn0x commented on June 7, 2024

I think it's related to your problem, try to check your session token expires.

from commitgpt.

shrx avatar shrx commented on June 7, 2024

Indeed it looks to be changing constantly, but it's not expiring:
Expires / Max-Age:"Thu, 05 Jan 2023 08:41:24 GMT"

from commitgpt.

fzn0x avatar fzn0x commented on June 7, 2024

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...

from commitgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.