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
Copy file name to clipboardexpand all lines: init.org
+19-9
Original file line number
Diff line number
Diff line change
@@ -3965,19 +3965,29 @@ Visual undo history navigation.
3965
3965
#+end_src
3966
3966
3967
3967
** AI
3968
-
*** ellama
3968
+
*** gptel
3969
3969
#+begin_src emacs-lisp :tangle yes
3970
-
(use-package ellama
3970
+
(use-package gptel
3971
3971
:ensure t
3972
3972
:functions
3973
-
(make-llm-ollama)
3974
-
:bind-keymap
3975
-
("C-, e" . ellama-command-map)
3973
+
(gptel-make-ollama)
3974
+
:bind
3975
+
((:map leader-map
3976
+
("g" . gptel-menu)
3977
+
("G" . gptel)))
3976
3978
:config
3977
-
(setq ellama-auto-scroll t)
3978
-
(setq ellama-provider
3979
-
(make-llm-ollama :chat-model "llama3.1"
3980
-
:embedding-model "llama3.1")))
3979
+
(setq gptel-model "llama3.1:latest")
3980
+
(setq gptel-backend (gptel-make-ollama "Ollama"
3981
+
:host "localhost:11434"
3982
+
:stream t
3983
+
:models '("llama3.1:latest"
3984
+
"gemma2:latest")))
3985
+
(setq gptel-default-mode 'org-mode)
3986
+
3987
+
(cl-pushnew
3988
+
'(cli . "You are a large language model and a correct command line helper. Provide commands and only commands as output without any additional text, prompt or note.")
0 commit comments