From 534475d7aa4d9fc925136b0fe174a867e3b610da Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Sat, 21 Jun 2025 23:04:55 -0400 Subject: [PATCH] Add reference to `commit_message_model` in git docs. (#33186) Release Notes: - N/A --- docs/src/git.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/src/git.md b/docs/src/git.md index 69d87ddf66..d71dcbc54d 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" + } + } +} +``` + More advanced AI integration with Git features may come in the future.