Closed asanchez75 closed 2 months ago
Hello,
Here is a snippet for the init.el file to set Ollama as default backend. It might be useful for someone.
init.el
(use-package gptel :config (setq gptel-default-mode 'org-mode) ;; default backend (setq gptel-backend (gptel-make-ollama "Ollama" :host "localhost:11434" :stream t :models '("llama3" "mistral:v0.2" "phi3" "gemma" "biomistral" ))) ;(setq! gptel-api-key "your key") )
@asanchez75 Thank you. Note that the README already contains snippets like the above to set each backend as the default, including Ollama.
Hello,
Here is a snippet for the
init.el
file to set Ollama as default backend. It might be useful for someone.