gitui
gitui copied to clipboard
ai commit summary creation using chat-gpt
Right now this is not optimized for long diffs.
TODO:
- [ ] feed it less context if diff gets >4k
- [ ] feed list of files touched first and then diffs and cut at 4k point
- [ ] put behind feature flag
- [ ] other rust crate for openai?
- [ ] changelog
- [ ] readme on how to configure
Hi, I tested this on my Mac and noticed it works pretty good . How can we prioritise this? Also, I might help by adding docs on usage or helping trying different prompts.
Current message output gets bigger with current prompt.
This is the default prompt used at jetbrains products which we can modify to our needs:
Avoid overly verbose descriptions or unnecessary details.
Start with a short sentence in imperative form, no more than 50 characters long.
Then leave an empty line and continue with a more detailed explanation.
Write only one sentence for the first part, and two sentences at most for the detailed explanation.