opencommit: [Bug]: Error: Request failed with status code 400
Opencommit Version
2.0.12
Node Version
14.21.2
NPM Version
9.6.6
What OS are you seeing the problem on?
No response
What happened?
A bug happened!When i try to generate a commit i hve this error Error: Request failed with status code 404 i tried with gpt-3.5-turbo and gpt-4
Expected Behavior
Generate a commit message
Current Behavior
Not gerating commit and trow an error oc
Possible Solution
No response
Steps to Reproduce
config openai api key
Relevant log output
No response
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
I suggest adjusting the MAX_TOKEN configuration to a lower value. In my case, I found that setting it to 1100 worked well. When the value was lower than that, I encountered 429 status, and when it was higher, I encountered 400 status. It seems there might be a logic issue related to the token limit, which is determined by the line
const MAX_REQ_TOKENS = 3000 - INIT_MESSAGES_PROMPT_LENGTHAny solution / permanent fix yet? It is so annoying that 400 error and throws me out of my focus and workflow each time.
What about option for using GPT 3.5-16k token model? This one can easy handle larger tokens without using the way more expensive GPT 4.0 model. It’s only slighter more expensive but more convenient that it can handle larger tokens. I tried this but it raised an error that the config can not handle this model. It seems locked on either GPT3.5 or 4, nothing else?
Getting a 400 too.
And this: