Update gptel-commit-message prompt
This commit is contained in:
parent
bcb8d468a6
commit
be07e673f9
@ -35,11 +35,11 @@
|
|||||||
(goto-char (point-max))
|
(goto-char (point-max))
|
||||||
(forward-line -1)
|
(forward-line -1)
|
||||||
(point)))))
|
(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." 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. Reply with the commit message only." diff)))
|
||||||
(message "Generating commit message...")
|
(message "Generating commit message...")
|
||||||
(gptel-request prompt
|
(gptel-request prompt
|
||||||
:stream t
|
:stream t
|
||||||
:system "You are an experienced software engineer writing a commit message.")))
|
:system "You are a professional software engineer.")))
|
||||||
|
|
||||||
(use-package llama
|
(use-package llama
|
||||||
:straight `(:local-repo ,(expand-file-name "packages/llama" user-emacs-directory) :type nil)
|
:straight `(:local-repo ,(expand-file-name "packages/llama" user-emacs-directory) :type nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user