Open gamoreli opened 1 year ago
I would love to see this too. I love the detail that it includes but I'd also like to see the first line just be a short summary of changes (ideally <= 50 characters)
I presume this is due to changing the default value of the OCO_OPENAI_MAX_TOKENS=<max response tokens from openAI API>
In newer version it defaults to 500 while in olders it used to be 196
The 196 default was used until v2.0.16
looking at history.
As I workaround I just set OCO_OPENAI_MAX_TOKENS=196
in ~/.opencommit
to make commit messages much shorter for now.
I don't mind the length it can be helpful to be detailed, it's just that I would like a short summary in the title, gives an overall sense of what was changed in the commit so that you can see it for example on editors that show the most recent update to a line in-line, etc
Stale issue message
I just tried to modified in my local and seems it has short sumary on the first line
+1
Description
opencommit feature tends to generate quite a chunk of text for commit messages when descriptions are set. Detailed? Yes. But a bit long to read? Probably.
What if we add a feature that lets us summarise these commit messages after the initial commit?
Suggested Solution
Alternatives
No response
Additional Context
No response