Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add reference to `commit_message_model` in git docs. (#33186)

Peter Tripp534475d7aa4d
diff --git a/docs/src/git.md b/docs/src/git.md
index 69d87ddf668..d71dcbc54d2 100644
--- a/docs/src/git.md
+++ b/docs/src/git.md
@@ -76,6 +76,20 @@ You can ask AI to generate a commit message by focusing on the message editor wi
> Note that you need to have an LLM provider configured. Visit [the AI configuration page](./ai/configuration.md) to learn how to do so.
+You can specify your preferred model to use by providing a `commit_message_model` agent setting. See [Feature-specific models](./ai/configuration.md#feature-specific-models) for more information.
+
+```json
+{
+ "agent": {
+ "version": "2",
+ "commit_message_model": {
+ "provider": "anthropic",
+ "model": "claude-3-5-haiku"
+ }
+ }
+}
+```
+
<!-- Add media -->
More advanced AI integration with Git features may come in the future.