From 2268f9e4012f54ebd40ca229c64b7af0d65975fa Mon Sep 17 00:00:00 2001 From: anaxios Date: Fri, 9 Aug 2024 12:48:08 -0700 Subject: [PATCH] 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. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 2383dfd..74ee202 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,15 @@ To use Aicommit, you need to have the following tools installed: ```bash export GIT_EDITOR="aicommit" ``` +Optionally you can add the `--groq` flag to use the Groq API. + +```bash +export GROQ_API_KEY= +``` + +```bash +export GIT_EDITOR="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.