di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
5.98k stars 318 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!