From 4d022e32d2e313f889dac7c6106fbd54db9226d2 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 12 Aug 2024 16:31:54 -0400 Subject: [PATCH] Refine commit message prompt to be more specific Updated the prompt text to include "Be specific" to improve clarity and detail in generated commit messages. --- emacs/.emacs.d/config/init-ai.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-ai.el b/emacs/.emacs.d/config/init-ai.el index b610bdf..7dc663e 100644 --- a/emacs/.emacs.d/config/init-ai.el +++ b/emacs/.emacs.d/config/init-ai.el @@ -241,7 +241,7 @@ Assistant: Write a short story about a dragon who discovers a hidden talent that (goto-char (point-max)) (forward-line -1) (point))))) - (prompt (format "%s\n\nWrite a clear, concise commit message for this diff. The first line should succinctly summarize the changes made and should be no more than 50 characters. If additional context is needed, include it in an additional paragraph separate by a blank line from the first line. Do not use the word 'enhance' or talk about the user experience. Reply in plain text with no Markdown or other syntax. Reply with the commit message only." diff))) + (prompt (format "%s\n\nWrite a clear, concise commit message for this diff. The first line should succinctly summarize the changes made and should be no more than 50 characters. If additional context is needed, include it in an additional paragraph separate by a blank line from the first line. Do not use the word 'enhance' or talk about the user experience. Be specific. Reply in plain text with no Markdown or other syntax. Reply with the commit message only." diff))) (message "Generating commit message...") (gptel-request prompt :stream t