You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understood from your comment we should use the master branch of this project from this point onwards. And once the gptel-backend variable is configured correctly, magit-gptcommit should work as expected.
However, so far, I wasn't able to get the package commands to show inside of the magit buffer.
(use-package! magit-gptcommit
:demand t
:after magit
:bind (:map git-commit-mode-map
("C-c C-g" . magit-gptcommit-commit-accept))
:config
;; Enable magit-gptcommit-mode to watch staged changes and generate commit message automatically in magit status buffer
;; This mode is optional, you can also use `magit-gptcommit-generate' to generate commit message manually
;; `magit-gptcommit-generate' should only execute on magit status buffer currently
;; (magit-gptcommit-mode 1)
;; Add gptcommit transient commands to `magit-commit'
;; Eval (transient-remove-suffix 'magit-commit '(1 -1)) to remove gptcommit transient commands
(magit-gptcommit-status-buffer-setup))
What am I missing? Any further guidance would be appreciated, thanks in advance!
The text was updated successfully, but these errors were encountered:
Turns out, I needed to make sure I had source code staged in the Magit buffer before the package options would show. I expected the options to be there by default (but I guess I missed reading that in the setup instructions).
Above config snippet is not enough, magit-gptcommit-llm-provider also needs to be set, as I now get:
magit-gptcommit--insert: No llm provider, please configure ‘magit-gptcommit-llm-provider’.
Thanks for your work in this project!
I understood from your comment we should use the
master
branch of this project from this point onwards. And once thegptel-backend
variable is configured correctly,magit-gptcommit
should work as expected.However, so far, I wasn't able to get the package commands to show inside of the magit buffer.
This is the content of my
gptel-backend
variable:This is the minimal config I'm using:
What am I missing? Any further guidance would be appreciated, thanks in advance!
The text was updated successfully, but these errors were encountered: