Skip to content

Commit daddbf9

Browse files
Update ai-tools.md
1 parent 6cebc21 commit daddbf9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/other/ai-tools.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# AI tools
2+
> Using AI to generate commit messages
3+
4+
## ChatGPT-based extensions
25

36
Search for "gpt commit" in the extensions marketplace and you'll see plenty of extensions that use GPT to write your commit message.
47

58
e.g. [GPT Commit](https://marketplace.visualstudio.com/items?itemName=DmytroBaida.gpt-commit)
69

710
If done well, this could be even more flexible and natural than this Auto Commit Msg which has no AI (but at least handles basic messages for a variety of cases based on the paths of the files that changed rather than the contents).
811

9-
Downsides:
12+
### Downsides
1013

1114
- There's a time delay.
1215
- Requires network access.
13-
- You need to a ChatGPT API key for a premium subscription.
16+
- You need to a ChatGPT API key and to pay for a premium subscription.
1417
- Limited acccuracy - I don't know if GPT is powerful enough to figure out the context of what you are doing and intend to write based on a diff only, as some of the reasoning for a change won't be covered by code itself but by real world events and requirements. You can pass more unchanged files from you codebase in an extension to the AI but this costs more money and won't always help.
18+
19+
## Local LLMs
20+
21+
To get around the limitations of the above, especially for private codebases, you could use a locally run LLM (like Ollama) instead of ChatGPT. Perhaps there are extensions which support this.

0 commit comments

Comments
 (0)