Try the new Generate Commit Message (Experimental) #2581
Replies: 4 comments 10 replies
-
works well but i cannot change openai api key |
Beta Was this translation helpful? Give feedback.
-
This is great, however I don't want to pay for an OpenAI key. Maybe in the future you can use open source models like LAION OpenAssistant, HuggingChat, or the new Falcon-Chat (currently not tuned for code but it is the best open source LLM currently) |
Beta Was this translation helpful? Give feedback.
-
Can it be coerced into generating conventional commits? https://www.conventionalcommits.org |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if github copilot has integration points that can be leveraged so it can be used as a commit message provider in GK or not. Are there any plans to support this scenario? Would be nice, given that we already have subs for that. |
Beta Was this translation helpful? Give feedback.
-
We’ve introduced a new experimental feature to assist with writing commit messages by leveraging OpenAI.
To start, stage some changes you want to commit and generate a commit message for and then run the “Generate Commit Message (Experimental)” command from the Command Palette. From there you will be guided through the process of accepting to send the diff of your staged changes to OpenAI and the entry of your OpenAI key. Once completed, the generated commit message will be entered into the commit input box on the Source Control sidebar. You can also enter additional context about your changes in the commit box and those will also be sent to help generate a better message.
Additionally, you can customize the
gitlens.experimental.generateCommitMessagePrompt
setting to control the prompt used to structure and format the generated commit message. You could have it structure commit messages in the conventional commit style, or you can have fun with it and make your commit messages in the style of a pirate, Shakespeare, etc.This is a very early peek into features and ideas that can leverage AI – with more planned in the near future. We're excited to bring this experimental feature to you and are ready to answer any questions and make improvements where needed.
We'd love to hear your feedback! 🙏
Beta Was this translation helpful? Give feedback.
All reactions