Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gai_commit-0.0.0b1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

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

Hashes for gai_commit-0.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 f65960e83bde5741e8de8e6c62c00c0959ac69fe055e4cecabbc995fe316eb38
MD5 b3e2829f4c72d02d977baf14b12ebb39
BLAKE2b-256 5d9142c9eac2b83a48e44aa27006bf4a3413515b28ca5d2495b4abdcfd7647e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for gai_commit-0.0.0b1-py3-none-any.whl:

Publisher: publish.yml on muzahid59/gai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page