Available Models
GitWhisper supports the full range of OpenAI models:GPT-5 Series (Latest)
The newest generation with enhanced capabilities:- gpt-5 - Most advanced model with superior reasoning
- gpt-5-pro - Enhanced version for complex tasks
- gpt-5-mini - Faster, cost-effective option
- gpt-5-nano - Ultra-fast for simple tasks
GPT-4.1 Series
Improved GPT-4 with better performance:- gpt-4.1 - Enhanced GPT-4 with improved accuracy
- gpt-4.1-mini - Balanced speed and quality
- gpt-4.1-nano - Lightweight and efficient
GPT-4o Series
- gpt-4o ⭐ (default) - Optimized for speed and cost
- gpt-4o-mini - Most cost-effective option
- gpt-4.5-preview - Preview of upcoming features
Realtime Series
Real-time optimized models:- gpt-realtime - Low-latency responses
- gpt-realtime-mini - Fastest option available
o-Series (Reasoning Models)
Specialized models with enhanced reasoning:- o1-preview - Advanced reasoning capabilities
- o1-mini - Compact reasoning model
- o3-mini - Latest reasoning model
The default model gpt-4o provides an excellent balance of quality, speed, and cost for most use cases.
Usage
Basic Usage
Generate commit messages with OpenAI:Specific Variant
Choose a specific model variant:Set as Default
Make OpenAI your default model:API Key Setup
You need an OpenAI API key to use these models. Get one at platform.openai.com.- Save Permanently
- Environment Variable
- Command Line
~/.git_whisper.yamlModel Comparison
- Quality vs Speed
- Reasoning Models
| Model | Quality | Speed | Cost | Best For |
|---|---|---|---|---|
| gpt-5 | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | 💰💰💰 | Complex codebases |
| gpt-4.1 | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | 💰💰 | Balanced usage |
| gpt-4o | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | 💰💰 | Default choice |
| gpt-4o-mini | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | 💰 | High volume |
Features
Advanced Code Understanding
OpenAI models excel at:- Understanding complex code changes across multiple files
- Identifying the intent behind refactorings
- Generating context-aware commit messages
- Following conventional commit formats
Interactive Confirmation
After generating a commit message, you can:Code Analysis
Use OpenAI models for detailed code analysis:- Summary of changes
- Potential issues or bugs
- Suggestions for improvements
- Code quality recommendations
Tips for Best Results
Choose the Right Model
Choose the Right Model
- Use gpt-5 for complex, multi-file changes
- Use gpt-4o for everyday commits
- Use gpt-4o-mini for simple, single-file changes
- Use o-series when you need deep reasoning about code logic
Optimize Your Diffs
Optimize Your Diffs
- Stage related changes together
- Keep commits focused on a single purpose
- Avoid mixing formatting changes with logic changes
Use Prefixes
Use Prefixes
Pricing
OpenAI charges based on tokens used. Typical commit message generation uses:- Small changes: ~500-1,000 tokens
- Medium changes: ~1,500-3,000 tokens
- Large changes: ~5,000+ tokens
Troubleshooting
Invalid API Key
Invalid API Key
Rate Limit Exceeded
Rate Limit Exceeded
Model Not Found
Model Not Found
Next Steps
Claude Models
Compare with Anthropic’s Claude models
All Variants
View complete list of OpenAI variants
Configuration
Learn more about API key management
Code Analysis
Use OpenAI for code analysis