Added option to use Groq API by adding --groq flag to GIT_EDITOR.

Added environment variable GROQ_API_KEY to store Groq API key.
Updated git commit example to include --groq flag.
This commit is contained in:
ilguappo 2024-08-09 12:48:08 -07:00
parent e4d4abb082
commit 2268f9e401
Signed by: ilguappo
GPG Key ID: 98486F29C8969FD0

View File

@ -19,6 +19,15 @@ To use Aicommit, you need to have the following tools installed:
```bash
export GIT_EDITOR="<path/to/>aicommit"
```
Optionally you can add the `--groq` flag to use the Groq API.
```bash
export GROQ_API_KEY=<groq-api-key>
```
```bash
export GIT_EDITOR="<path/to/>aicommit --groq"
```
3. **Use Git as normal**: Once configured, you can use Git as you normally would. When you run `git commit`, Aicommit will generate a draft commit message using RayAI, which will then be loaded into your default editor for review and editing.