5fb26e6220
Refactor aicommit.clj to utilize OpenAI's chat completion API for generating commit messages using groq.
...
Adding Cheshire core dependency for JSON parsing and generation
2024-08-10 08:12:05 -07:00
abd32275ba
Added aicommit.clj script to migrate to babashka clojure.
2024-08-10 06:26:06 -07:00
7476e27e01
Refactor instructions to generate concise and informative git commit messages, removing redundant guidelines and emphasizing clarity and understandability
2024-08-09 18:31:44 -07:00
2268f9e401
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.
2024-08-09 12:48:08 -07:00
e4d4abb082
Removed unnecessary variable ARGS and directly passed command line arguments to the editor.
2024-08-09 12:43:01 -07:00
32279b7fd5
Relocated echo statements.
2024-08-09 12:37:44 -07:00
a271e5624e
Changed the shebang line from #!/bin/bash
to #!/usr/bin/env bash
.
...
Removed the `aicommit_groq` script and deleted the file.
Updated the `EDITOR` command to use the `ARGS` array.
Moved groq config into aicommit.
2024-08-09 12:34:29 -07:00
43b79b2914
Delete test file: remove This is a test. line from test.txt
2024-08-08 02:26:00 -07:00
baed3d5d17
Update README.md with new instructions on using aicommit
...
Replace outdated information about `aicommit_groq`
Clarify prerequisites for using Aicommit
Add setup and usage section to README.md
Document bypassing AI-generated commit messages using the `-m` flag
2024-08-08 02:22:20 -07:00
e3704b4e6e
update README to reflect new feature and remove deprecated usage of aicommit_groq
2024-08-08 02:15:21 -07:00
141b53b4ba
Added AI-driven commit message drafting with aicommit, injecting draft messages before editor review. Fixed README to reflect usage and requirements.
2024-08-08 01:38:37 -07:00
f863bce0fa
Now stands as middleware between the git commit command and the default
...
editor.
2024-08-08 01:30:10 -07:00
455ae71cd3
Removed unnecessary line break and improved error message.
2024-08-07 07:07:58 -07:00
6fa213550d
Add pipefail option to set command to prevent pipes from hiding errors, improve script reliability
2024-08-07 04:40:22 -07:00
e0ee195fca
Content: Replaced custom spinner with curl command and removed unnecessary code for setting up spinner.
2024-08-07 04:33:31 -07:00
7de04c06c9
Title: Update GROQ API request to match official documentation
...
Content: Fixed JSON formatting and removed unnecessary comment.
URL: https://console.groq.com/docs/
2024-08-07 04:32:23 -07:00
ab5738d14e
Title: Update GROQ API request to match official documentation
...
Content: Updated curl command and removed unnecessary code for setting up spinner.
2024-08-07 04:21:13 -07:00
624861e320
Refactor aicommit_groq script: extract system message to a heredoc, remove redundant variable assignment, and improve code organization
2024-08-07 04:12:18 -07:00
cf655b7202
Title: Fix typo in system message
...
Content: Removed unnecessary newline and changed -in back to in in the system message definition.
2024-08-07 04:09:28 -07:00
41dc5665b4
Title: Improve system message definition
...
Content: Replaced string concatenation with a here document to improve readability and maintainability. Fixed trailing whitespace by adding a newline at the end of the last line.
2024-08-07 04:08:00 -07:00
74909d05f4
Title: Update system message
...
Content: Changed system message to include detail about every change in the diff for better clarity and precision
2024-08-07 03:58:46 -07:00
c72a7835da
Title: Improve script robustness
...
Content: Switch from set -eu to set -e for more robust error handling
2024-08-07 03:54:16 -07:00
1767b2c737
Remove redundant set options, simplify to just 'set -e' in aicommit_groq
2024-08-07 03:53:20 -07:00
475858de1a
Title: Improve error handling
...
Content: Removed set -o pipefail for better control over script flow
2024-08-07 03:51:37 -07:00
08d5fbdabc
Added spinner animation to indicate AI processing and improved error handling for API request
2024-08-07 03:48:26 -07:00
a7509a913c
Refactor aicommit_groq script to improve code readability and consistency
2024-08-07 03:45:24 -07:00
241b951a00
Title: Enforce directory change and handle failure
...
Content: Fix popd command to handle potential errors.
2024-08-07 03:38:37 -07:00
7a102dec96
Refactor aicommit_groq script to remove unnecessary argument passing to pushd and popd
2024-08-07 03:36:22 -07:00
78b72c3e36
Title: Think
...
Content: AI is thinking.
2024-08-07 03:34:15 -07:00
cd5ee84da7
Title: Add spin functionality to resetting AI history
...
Content: Implement a spinner for visual feedback when resetting AI history. Fix issues with killing the spinner process after its completion and reset conversation request failure.
URL: https://infer.x64.world/chat
2024-08-07 03:31:14 -07:00
9efdd307ab
Title: Improve reset functionality
...
Content: Add error handling for resetting conversation.
2024-08-07 03:23:49 -07:00
3149d1e73b
Improve the conditional statement to correctly check the exit status of the curl command when resetting the conversation.
2024-08-07 03:13:06 -07:00
31ae31643b
Fix error handling for failed POST requests to infer API endpoints
2024-08-07 03:11:37 -07:00
20a30bd9ed
Update README.md to include requirements for use.
2024-08-06 20:27:17 -07:00
323e37586f
update README.md with improved code snippet example and aicommit alias
...
diff:
diff --git a/README.md b/README.md
index dfd36c8..2e3d77f 100644
--- a/README.md
+++ b/README.md
@@ -4,9 +4,10 @@
Instead of `git commit -m your message here`
```bash
+git commit -m your message here
```
```bash
+aicommit
+
```
2024-08-06 20:21:34 -07:00
f9d06244b1
Add README with usage instructions for AI commit message tool
2024-08-06 19:59:29 -07:00
704f4b6f05
Added API key validation to prevent unauthorized access
2024-08-06 19:53:52 -07:00
95aa730114
first
2024-08-06 19:53:06 -07:00