Generate commit messages using GPT-3.
Project description
gpt-commit
Generate commit messages using GPT-3. To use gpt-commit
, simply invoke it whenever you'd use git commit
. Git will prompt you to edit the generated commit message.
git add .
gpt-commit
Based on Markus' gpt-commit.
Installation
Minimum Python version required: 3.10.
pipx
This is the recommended installation method.
$ pipx install gpt-commit-cli
pip
$ pip install gpt-commit-cli
Getting Started
Set the environment variable OPENAI_API_KEY
to your OpenAI API key, e.g. by adding the following line to your .bashrc
.
export OPENAI_API_KEY=<YOUR API KEY>
export OPENAI_ORG_ID=<YOUR ORG ID> # optional
Develop
$ git clone https://github.com/tddschn/gpt-commit-cli.git
$ cd gpt-commit-cli
$ poetry install
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 Distribution
gpt-commit-cli-0.1.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for gpt_commit_cli-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4014e54dfaa9b05155719fff228c5ddf64310bc665cd742684034b533772c9 |
|
MD5 | 2144928c1d6f98869051a622c1151ea3 |
|
BLAKE2b-256 | de9ea8cfe91141692477432f2710c7f8c1dca2286fd91fad7ee1b339a6b4c984 |