Comments (8)
Should be fixed by #4
from commitgpt.
@lukasnagl indeed, a curl request with this user agent does not fail.
from commitgpt.
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.
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.
After checking it for a while, I noticed that the auth token keeps changing
from commitgpt.
I think it's related to your problem, try to check your session token expires.
from commitgpt.
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.
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)
- Failed to fetch - Unauthorized HOT 3
- Would love to see this as a VS Code extension HOT 1
- Error: Forbidden HOT 4
- Idea: generate automatic PR description HOT 1
- A way to force new session token propmpt HOT 1
- "ask for more ideas" produces rubbish HOT 3
- Switch to the official openai module HOT 1
- 🐛 New generated __Secure-next-auth.session-token are not accepted HOT 2
- Doesn't work after new OpenAI Cloudflare protections HOT 14
- Unclear readme.md HOT 1
- Feature Request: Support gpt-4 HOT 1
- Feature Request: Interactive mode
- How to change API key? HOT 1
- Error: Request failed with status code 401
- Error: 429 too many requests HOT 2
- Can you set a global template config? HOT 2
- issue: the example in the README is wrong
- Token is lost on new launch of PyCharm instance - "OpenAI token is not set" HOT 1
- The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations
- This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commitgpt.