nuke ellama
This commit is contained in:
@@ -534,73 +534,73 @@
|
|||||||
;;why my agenda break haa?
|
;;why my agenda break haa?
|
||||||
(setq org-element-use-cache nil)
|
(setq org-element-use-cache nil)
|
||||||
;; (add-hook 'darkman-after-mode-changed-hook #'toggle-theme)
|
;; (add-hook 'darkman-after-mode-changed-hook #'toggle-theme)
|
||||||
(use-package! ellama
|
;; (use-package! ellama
|
||||||
:ensure t
|
;; :ensure t
|
||||||
;; :bind ("SPC e" . ellama)
|
;; ;; :bind ("SPC e" . ellama)
|
||||||
;; send last message in chat buffer with C-c C-c
|
;; ;; send last message in chat buffer with C-c C-c
|
||||||
:hook (org-ctrl-c-ctrl-c-final . ellama-chat-send-last-message)
|
;; :hook (org-ctrl-c-ctrl-c-final . ellama-chat-send-last-message)
|
||||||
:init
|
;; :init
|
||||||
;; setup key bindings
|
;; ;; setup key bindings
|
||||||
;; (setopt ellama-keymap-prefix "C-c e")
|
;; ;; (setopt ellama-keymap-prefix "C-c e")
|
||||||
;; language you want ellama to translate to
|
;; ;; language you want ellama to translate to
|
||||||
(setopt ellama-language "English")
|
;; (setopt ellama-language "English")
|
||||||
;; could be llm-openai for example
|
;; ;; could be llm-openai for example
|
||||||
(require 'llm-ollama)
|
;; (require 'llm-ollama)
|
||||||
(setopt ellama-provider
|
;; (setopt ellama-provider
|
||||||
(make-llm-ollama
|
;; (make-llm-ollama
|
||||||
;; this model should be pulled to use it
|
;; ;; this model should be pulled to use it
|
||||||
;; value should be the same as you print in terminal during pull
|
;; ;; value should be the same as you print in terminal during pull
|
||||||
:chat-model "danielsheep/Qwen3-Coder-30B-A3B-Instruct-1M-Unsloth:UD-IQ3_XXS"
|
;; :chat-model "danielsheep/Qwen3-Coder-30B-A3B-Instruct-1M-Unsloth:UD-IQ3_XXS"
|
||||||
:embedding-model "nomic-embed-text"
|
;; :embedding-model "nomic-embed-text"
|
||||||
:default-chat-non-standard-params '(("num_ctx" . 8192))))
|
;; :default-chat-non-standard-params '(("num_ctx" . 8192))))
|
||||||
;; (setopt ellama-summarization-provider
|
;; ;; (setopt ellama-summarization-provider
|
||||||
;; (make-llm-ollama
|
;; ;; (make-llm-ollama
|
||||||
;; :chat-model "qwen2.5:3b"
|
;; ;; :chat-model "qwen2.5:3b"
|
||||||
;; :embedding-model "nomic-embed-text"
|
;; ;; :embedding-model "nomic-embed-text"
|
||||||
;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
;; ;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
||||||
;; (setopt ellama-coding-provider
|
;; ;; (setopt ellama-coding-provider
|
||||||
;; (make-llm-ollama
|
;; ;; (make-llm-ollama
|
||||||
;; :chat-model "qwen2.5-coder"
|
;; ;; :chat-model "qwen2.5-coder"
|
||||||
;; :embedding-model "nomic-embed-text"
|
;; ;; :embedding-model "nomic-embed-text"
|
||||||
;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
;; ;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
||||||
;; Predefined llm providers for interactive switching.
|
;; ;; Predefined llm providers for interactive switching.
|
||||||
;; You shouldn't add ollama providers here - it can be selected interactively
|
;; ;; You shouldn't add ollama providers here - it can be selected interactively
|
||||||
;; without it. It is just example.
|
;; ;; without it. It is just example.
|
||||||
;; Naming new sessions with llm
|
;; ;; Naming new sessions with llm
|
||||||
(setopt ellama-naming-provider
|
;; (setopt ellama-naming-provider
|
||||||
(make-llm-ollama
|
;; (make-llm-ollama
|
||||||
:chat-model "deepseek-r1:1.5b"
|
;; :chat-model "deepseek-r1:1.5b"
|
||||||
:embedding-model "nomic-embed-text"
|
;; :embedding-model "nomic-embed-text"
|
||||||
:default-chat-non-standard-params '(("stop" . ("\n")))))
|
;; :default-chat-non-standard-params '(("stop" . ("\n")))))
|
||||||
(setopt ellama-naming-scheme 'ellama-generate-name-by-llm)
|
;; (setopt ellama-naming-scheme 'ellama-generate-name-by-llm)
|
||||||
;; Translation llm provider
|
;; ;; Translation llm provider
|
||||||
(setopt ellama-translation-provider
|
;; (setopt ellama-translation-provider
|
||||||
(make-llm-ollama
|
;; (make-llm-ollama
|
||||||
:chat-model "deepseek-r1:1.5b"
|
;; :chat-model "deepseek-r1:1.5b"
|
||||||
:embedding-model "nomic-embed-text"
|
;; :embedding-model "nomic-embed-text"
|
||||||
:default-chat-non-standard-params
|
;; :default-chat-non-standard-params
|
||||||
'(("num_ctx" . 32768))))
|
;; '(("num_ctx" . 32768))))
|
||||||
(setopt ellama-extraction-provider (make-llm-ollama
|
;; (setopt ellama-extraction-provider (make-llm-ollama
|
||||||
:chat-model "qwen2.5-coder:14b"
|
;; :chat-model "qwen2.5-coder:14b"
|
||||||
:embedding-model "nomic-embed-text"
|
;; :embedding-model "nomic-embed-text"
|
||||||
:default-chat-non-standard-params
|
;; :default-chat-non-standard-params
|
||||||
'(("num_ctx" . 32768))))
|
;; '(("num_ctx" . 32768))))
|
||||||
;; customize display buffer behaviour
|
;; ;; customize display buffer behaviour
|
||||||
;; see ~(info "(elisp) Buffer Display Action Functions")~
|
;; ;; see ~(info "(elisp) Buffer Display Action Functions")~
|
||||||
(setopt ellama-chat-display-action-function #'display-buffer-full-frame)
|
;; (setopt ellama-chat-display-action-function #'display-buffer-full-frame)
|
||||||
(setopt ellama-instant-display-action-function #'display-buffer-at-bottom)
|
;; (setopt ellama-instant-display-action-function #'display-buffer-at-bottom)
|
||||||
:config
|
;; :config
|
||||||
;; show ellama context in header line in all buffers
|
;; ;; show ellama context in header line in all buffers
|
||||||
;; (ellama-context-header-line-global-mode nil)
|
;; ;; (ellama-context-header-line-global-mode nil)
|
||||||
;; show ellama session id in header line in all buffers
|
;; ;; show ellama session id in header line in all buffers
|
||||||
;; (ellama-session-header-line-global-mode nil)
|
;; ;; (ellama-session-header-line-global-mode nil)
|
||||||
;; handle scrolling events
|
;; ;; handle scrolling events
|
||||||
(advice-add 'pixel-scroll-precision :before #'ellama-disable-scroll)
|
;; (advice-add 'pixel-scroll-precision :before #'ellama-disable-scroll)
|
||||||
(advice-add 'end-of-buffer :after #'ellama-enable-scroll))
|
;; (advice-add 'end-of-buffer :after #'ellama-enable-scroll))
|
||||||
;; ellama keybinds
|
;; ;; ellama keybinds
|
||||||
(map! :leader
|
;; (map! :leader
|
||||||
:nv "e" #'ellama
|
;; :nv "e" #'ellama
|
||||||
)
|
;; )
|
||||||
;; I really needed this a long time ago
|
;; I really needed this a long time ago
|
||||||
;; Markdown enter )
|
;; Markdown enter )
|
||||||
(setq markdown-indent-on-enter 'indent-and-new-item)
|
(setq markdown-indent-on-enter 'indent-and-new-item)
|
||||||
@@ -663,3 +663,4 @@
|
|||||||
(setq telega-server-libs-prefix "/nix/store/q5skl24l40lrjinl8ppy83gc0gp0z4xa-tdlib-1.8.55")
|
(setq telega-server-libs-prefix "/nix/store/q5skl24l40lrjinl8ppy83gc0gp0z4xa-tdlib-1.8.55")
|
||||||
(setenv "PKG_CONFIG_PATH" "/nix/store/hqvsiah013yzb17b13fn18fpqk7m13cg-zlib-1.3.1-dev/lib/pkgconfig/")
|
(setenv "PKG_CONFIG_PATH" "/nix/store/hqvsiah013yzb17b13fn18fpqk7m13cg-zlib-1.3.1-dev/lib/pkgconfig/")
|
||||||
(setcdr (assq t org-file-apps-gnu) 'browse-url-xdg-open)
|
(setcdr (assq t org-file-apps-gnu) 'browse-url-xdg-open)
|
||||||
|
(setq telega-tdlib-min-version "1.8.55")
|
||||||
|
|||||||
@@ -74,9 +74,10 @@
|
|||||||
;(unpin! t)
|
;(unpin! t)
|
||||||
(package! package-lint :pin "21edc6d0d0eadd2d0a537f422fb9b7b8a3ae6991")
|
(package! package-lint :pin "21edc6d0d0eadd2d0a537f422fb9b7b8a3ae6991")
|
||||||
(package! auctex :pin "86b2397abdc20a638e5751251026727bc6282022")
|
(package! auctex :pin "86b2397abdc20a638e5751251026727bc6282022")
|
||||||
(package! ellama)
|
;; (package! ellama)
|
||||||
(package! mpdel)
|
(package! mpdel)
|
||||||
(package! graphviz-dot-mode)
|
(package! graphviz-dot-mode)
|
||||||
(package! xclip)
|
(package! xclip)
|
||||||
(package! gnuplot)
|
(package! gnuplot)
|
||||||
(package! uv-mode)
|
(package! uv-mode)
|
||||||
|
(package! eca :recipe (:host github :repo "editor-code-assistant/eca-emacs" :files ("*.el")))
|
||||||
|
|||||||
Reference in New Issue
Block a user