Commit Graph

26 Commits

Author SHA1 Message Date
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