Whisper From LLMs For Your Commit Msg
CommitWhisper utilizes LLMs generate git commit messages based on code diff information.
- 🔍 Get Diff Info From Staged Files
- 🌈 Interactive configuration selection for easy model switching.
- 🚀 Especially supports Chinese AI providers, Such as:
- DeepSeek From
DeepSeek- deepseek-chat
- deepseek-reasoner
- Tongyi Qianwen(通义千问) From
Alibaba - Doubao(豆包) From
ByteDance - 💤 More
- DeepSeek From
- 🌅 Supports Mainstream AI providers, Such as:
- 💬 [TODO] Interactive prompts allow the model to refine generated messages.
- ⏳ Coming Soon More
| LLMs | Refer To Get API KEY |
|---|---|
| Qianwen | ✅ Get Your Key |
| OpenAI | ✅ Get Your Key |
| Doubao | ✅ Get Your Endpoint and Key |
| DeepSeek | ✅ Get Your Key |
| Claude | 💤 Coming Soon |
Warning
This CLI is beta quality. Expect breaking changes and many bugs
- Nerd Font
- Git
- Go
go install github.com/Coien-rr/CommitWhisper@latest
ln -s $(go env GOPATH)/bin/CommitWhisper $(go env GOPATH)/bin/cw
cw # Using Commit Whisper in Git-Repo-
DownLoad Released Package Based On Your System From Release Page
-
Extract the package to obtain the CLI
cw -
sudo ln -s ./cw /usr/local/bin/ cw # Using Commit Whisper in Git-Repo
Cofig File Locates ~/.commitwhisper
When you first start cw, it will prompt you interactively to select configurations, including
- AI provider,
- LLMs,
- API key, and other related information.
Also, You Can Use cw rc to reconfig.
Demo Config:
AiProvider: Qwen
ModelName: qwen2.5-coder-32b-instruct
APIUrl: https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
APIKey: [Please Put Your API Key Here]💡 Ideas to explore
- Interactive prompts allow the model to refine generated messages.
- Support More AiProvider, Such as OpenAI✅, Claude💤, etc.(In Process)
- Generate more detailed commit descriptions(multi-lines commit).
- Explain the purpose of code changes compare two commit.
- Integrate
commitlintto evaluate the quality of commit messages generated by LLMs. - And More