Reconfigure GPTel for Ollama

This commit is contained in:
Fabio Scotto di Santolo
2026-04-11 22:29:33 +02:00
parent 57b4e13c2a
commit b792828cc0
3 changed files with 7 additions and 14 deletions

View File

@@ -4,10 +4,13 @@
:ensure t
:commands (gptel gptel-send gptel-rewrite)
:config
(let ((private-config
(expand-file-name "lisp/misc/gptel-private.el" user-emacs-directory)))
(when (file-readable-p private-config)
(load private-config nil 'nomessage))))
(setq gptel-backend
(gptel-make-ollama
"Ollama"
:host "localhost:11434"
:stream t))
;; Set `gptel-model' after installing a local Ollama model.
)
(provide 'fscotto-gptel)