ellama for local llm capability
This commit is contained in:
parent
f5065eb32f
commit
f06abe629f
|
|
@ -45,7 +45,7 @@
|
||||||
(add-hook 'emacs-lisp-mode-hook #'my/setup-elisp-formatting-key)
|
(add-hook 'emacs-lisp-mode-hook #'my/setup-elisp-formatting-key)
|
||||||
|
|
||||||
(defun my/visit-todo ()
|
(defun my/visit-todo ()
|
||||||
"Visit TODO.org in home"
|
"Visit TODO.org in home."
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file "/ssh:lkn@alioth.uberspace.de:/home/lkn/TODO.org"))
|
(find-file "/ssh:lkn@alioth.uberspace.de:/home/lkn/TODO.org"))
|
||||||
|
|
||||||
|
|
@ -682,21 +682,23 @@
|
||||||
(global-set-key (kbd "C-x y b p") 'copy-file-path-to-clipboard)
|
(global-set-key (kbd "C-x y b p") 'copy-file-path-to-clipboard)
|
||||||
(add-hook 'before-save-hook #'gofmt-before-save)
|
(add-hook 'before-save-hook #'gofmt-before-save)
|
||||||
|
|
||||||
;; (use-package ellama
|
(use-package ellama
|
||||||
;; :init
|
:ensure t
|
||||||
;; ;; setup key bindings
|
:defer t
|
||||||
;; (setopt ellama-keymap-prefix "C-c e")
|
:init
|
||||||
;; ;; language you want ellama to translate to
|
;; setup key bindings
|
||||||
;; (setopt ellama-language "English")
|
(setopt ellama-keymap-prefix "C-c e")
|
||||||
;; ;; could be llm-openai for example
|
;; language you want ellama to translate to
|
||||||
;; (require 'llm-ollama)
|
(setopt ellama-language "English")
|
||||||
;; (setopt ellama-provider
|
;; could be llm-openai for example
|
||||||
;; (make-llm-ollama
|
(require 'llm-ollama)
|
||||||
;; ;; this model should be pulled to use it
|
(setopt ellama-provider
|
||||||
;; ;; value should be the same as you print in terminal during pull
|
(make-llm-ollama
|
||||||
;; :chat-model "codellama:latest"
|
;; this model should be pulled to use it
|
||||||
;; :embedding-model "nomic-embed-text"
|
;; value should be the same as you print in terminal during pull
|
||||||
;; :default-chat-non-standard-params '(("num_ctx" . 8192)))))
|
:chat-model "codellama:latest"
|
||||||
|
:embedding-model "nomic-embed-text"
|
||||||
|
:default-chat-non-standard-params '(("num_ctx" . 8192)))))
|
||||||
|
|
||||||
(use-package lmtf :ensure t :defer t
|
(use-package lmtf :ensure t :defer t
|
||||||
:straight (lmtf :type git :host github :repo "lneely/lmtf")
|
:straight (lmtf :type git :host github :repo "lneely/lmtf")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue