1.2.31 • Published 4 days ago

@negoziator/ai-commit v1.2.31

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

Table of Contents

Setup

A minimum of Node v20 is required. Check your Node.js version with node --version.

Installation

  1. Install AI-Commit:

    npm install -g @negoziator/ai-commit
  2. Retrieve your API key from OpenAI

    Note: This requires an OpenAI account. If you don't have one, you can sign up for a free trial.

  3. Set the key so aicommit can use it:

    aicommit config set OPENAI_KEY=<your token>

    This will create a .aicommit file in your home directory.

Upgrading

npm update -g @negoziator/ai-commit

Usage

CLI Mode

Use aicommit directly to generate a commit message for your staged changes:

git add <files...>
aicommit

Configuration

Manage configuration using the aicommit config command.

To get a configuration option value, use the command:

aicommit config get <key>

For example, to retrieve the API key, you can use:

aicommit config get OPENAI_KEY
> sk_1234567890

To set a configuration option, use the command:

aicommit config set <key>=<value>

Options

OptionDefaultDescription
OPENAI_KEYN/AThe OpenAI API key.
localeenLocale for the generated commit messages.
generate1Number of commit messages to generate.
modelgpt-3.5-turboThe Chat Completions model to use.
timeout10000 msNetwork request timeout to the OpenAI API.
max-length50Maximum character length of the generated commit message.
type""Type of commit message to generate.
auto-confirmfalseAutomatically confirm the generated commit message without user prompt.
prepend-referencefalsePrepend issue reference from branch name to commit message.
temperature0.2The temperature (0.0-2.0) is used to control the randomness of the output from OpenAI

Maintainers

  • Lars Schou:

Contributing

If you want to help fix a bug or implement a feature in Issues, checkout the Contribution Guide to learn how to setup and test the project.

1.2.31

4 days ago

1.2.30

7 days ago

1.2.29

14 days ago

1.2.28

15 days ago

1.2.23

16 days ago

1.2.24

16 days ago

1.2.27

16 days ago

1.2.25

16 days ago

1.2.26

16 days ago

1.2.22

2 months ago

1.2.21

3 months ago

1.2.20

3 months ago

1.2.19

3 months ago

1.2.18

5 months ago

1.2.17

6 months ago

1.2.16

6 months ago

1.2.15

7 months ago

1.2.14

7 months ago

1.2.13

7 months ago

1.2.12

7 months ago

1.2.11

7 months ago

1.2.10

7 months ago

1.2.9

7 months ago

1.2.8

7 months ago

1.2.7

7 months ago

1.2.6

7 months ago

1.2.5

7 months ago

1.2.4

8 months ago

1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago