feat: max-length config (#194)

Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
This commit is contained in:
Rocktim
2023-04-25 20:25:45 +05:30
committed by GitHub
parent 4d7712f1e8
commit edce283e9c
7 changed files with 135 additions and 9 deletions

View File

@@ -194,6 +194,15 @@ Default: `10000` (10 seconds)
aicommits config set timeout=20000 # 20s
```
#### max-length
The maximum character length of the generated commit message.
Default: `50`
```sh
aicommits config set max-length=100
```
## How it works
This CLI tool runs `git diff` to grab all your latest code changes, sends them to OpenAI's GPT-3, then returns the AI generated commit message.