di-sukharev / opencommit

just a GPT wrapper for git — generate commit messages by an LLM in 1 sec — works best with Claude 3.5 — supports local models too
https://www.npmjs.com/package/opencommit
MIT License
6.19k stars 331 forks source link

[Bug]: #158

Closed vagnermaltauro closed 1 year ago

vagnermaltauro commented 1 year ago

Opencommit Version

2.0.11

Node Version

16.18.8

NPM Version

8,19,2

What OS are you seeing the problem on?

No response

What happened?

Generating the commit message
│ └ ✖ Error: Request failed with status code 400

Expected Behavior

Generating the commit message
│ └ ✖ Error: Request failed with status code 400

Current Behavior

Generating the commit message
│ └ ✖ Error: Request failed with status code 400

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

vagnermaltauro commented 1 year ago

This model's maximum context length is 4097 tokens. However, your messages resulted in 4697 tokens. Please reduce the length of the messages.

need to add a message like this for verification.

the report of just a 400 error is very vague!

I shortened the characters and the commit worked!