An AI-powered git commit message generator.
Project description
gai-commit
An AI-powered git commit message generator that helps you create meaningful commit messages using AI.
Installation
pip install gai-commit
Usage
# The command is still 'gai'
gai --help
gai --provider openai
gai --provider ollama
Features
- 🤖 AI-Powered: Generate commit messages using OpenAI or Ollama
- 🔄 Interactive: Choose from generated suggestions or edit them
- ⚙️ Configurable: Support for multiple AI providers
- 🔐 Secure: API keys stored safely in .env files
Configuration
Create a .env file in your project root:
# Choose provider: 'ollama' or 'openai'
PROVIDER=ollama
# For Ollama (local)
MODEL=llama3.2
CHAT_URL=http://localhost:11434/api
# For OpenAI (cloud)
# PROVIDER=openai
# API_KEY=your_api_key_here
Command Line Options
gai --provider ollama # Override provider
gai --provider openai # Use OpenAI instead of default
Requirements
- For Ollama: Install and run Ollama locally
- For OpenAI: Valid API key with available credits
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gai_commit-0.0.0b1-py3-none-any.whl.
File metadata
- Download URL: gai_commit-0.0.0b1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f65960e83bde5741e8de8e6c62c00c0959ac69fe055e4cecabbc995fe316eb38
|
|
| MD5 |
b3e2829f4c72d02d977baf14b12ebb39
|
|
| BLAKE2b-256 |
5d9142c9eac2b83a48e44aa27006bf4a3413515b28ca5d2495b4abdcfd7647e0
|
Provenance
The following attestation bundles were made for gai_commit-0.0.0b1-py3-none-any.whl:
Publisher:
publish.yml on muzahid59/gai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gai_commit-0.0.0b1-py3-none-any.whl -
Subject digest:
f65960e83bde5741e8de8e6c62c00c0959ac69fe055e4cecabbc995fe316eb38 - Sigstore transparency entry: 339502109
- Sigstore integration time:
-
Permalink:
muzahid59/gai@f1a881637ebefa091951c678dfe3f6ff003bac91 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/muzahid59
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1a881637ebefa091951c678dfe3f6ff003bac91 -
Trigger Event:
workflow_dispatch
-
Statement type: