Getting Started with LLM Commit Generator
Get started with this Blueprint using one of the options below:
Installation
Prerequisites
Before you begin, make sure you have:
- Python 3.10 or higher installed
- Git installed and configured
- fzf installed for the terminal UI (see installation guide)
- Either:
- Jan AI installed for local inference (install guide)
- Or Ollama as an alternative local inference option (install guide)
Install from PyPI
The easiest way to install LLM Commit Generator is via pip:
Install from Source
Alternatively, you can install from source:
Setup
For Inference with Jan AI (Default)
- Install and launch Jan AI from jan.ai
- Download a model (like llama 3.1) through the Jan AI interface
- Ensure the Jan AI application is running
- (Optional) Set a custom model:
For Inference with Ollama
- Start the Ollama service
- Pull a model (we recommend llama3.1):
- (Optional) Set a custom model:
Usage
Basic Usage
- Make changes to your files in a git repository
- Run:
- Select one of the generated commit messages using the arrow keys or number keys
- Press Enter to commit with the selected message, or Esc to cancel
Advanced Options
# Use Ollama instead of Jan AI
lcm --ollama
# Show performance analytics
lcm --analytics
# Use vim-style navigation in fzf
lcm --vim
# Use number selection for messages
lcm --num
# Set the maximum characters for commit messages
lcm --max_chars 100
What's Next?
- See the Step-by-Step Guide to understand how LLM Commit Generator works
- Learn about customization options to tailor it to your needs