Skip to content

Commit a02dd84

Browse files
committed
Refine shell script instructions and enhance Gist link for AI commit message generator
1 parent 4320b1f commit a02dd84

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

content/en/blog/ai-powered-git-commits-alternative-for-github-copilot---mistral-codestral.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ By using an external AI backend via a simple `curl` call, you sidestep GitHub’
3939
**Hint**: You could replace the codestral api with any other OpenAI-compatible API and model. Only replace:
4040

4141
* CODESTRAL_API_KEY -> FOO_API_KEY
42-
* DEFAULT_MODEL="foo-latest"
43-
* API_URL="https://my.foo.ai/v1/chat/completions"
42+
* DEFAULT_MODEL=foo-latest
43+
* API_URL=https://my.foo.ai/v1/chat/completions
4444

4545
## 2. Grab Your Free Codestral Key
4646

@@ -56,6 +56,8 @@ Below is an alternative to GitHub Copilot AI commit message generator. Save this
5656

5757
{{< gistmarkdown url="https://gist-githubusercontent-com.sihan.fun/d-oit/c184cc30804f1d79474782a991a47f4e/raw/94b202f3587e76aee604f134da79d8fc42b44859/ai-git-commit.sh" >}}
5858

59+
[Gist with Revisions](https://gist.github.com/d-oit/c184cc30804f1d79474782a991a47f4e)
60+
5961
**How it works**:
6062

6163
* **Staging**: Automatically stages tracked changes, with an optional prompt for untracked files.
@@ -65,7 +67,7 @@ Below is an alternative to GitHub Copilot AI commit message generator. Save this
6567
* **Cleanup**: Strips Markdown fences and polish quotes.
6668
* **Confirmation**: Shows you the AI’s message before committing.
6769

68-
{{< image class="rounded lightbox" src="./img/blog/ai-git-commit-windsurf.png" caption="Windsurf: AI commit" >}}
70+
{{< image class="rounded lightbox" src="./img/blog/ai-git-commit-windsurf.png" caption="Windsurf: AI commit alternative" >}}
6971

7072
## Putting It All Together
7173

0 commit comments

Comments
 (0)