nuke ellama
This commit is contained in:
@@ -534,73 +534,73 @@
|
||||
;;why my agenda break haa?
|
||||
(setq org-element-use-cache nil)
|
||||
;; (add-hook 'darkman-after-mode-changed-hook #'toggle-theme)
|
||||
(use-package! ellama
|
||||
:ensure t
|
||||
;; :bind ("SPC e" . ellama)
|
||||
;; send last message in chat buffer with C-c C-c
|
||||
:hook (org-ctrl-c-ctrl-c-final . ellama-chat-send-last-message)
|
||||
:init
|
||||
;; setup key bindings
|
||||
;; (setopt ellama-keymap-prefix "C-c e")
|
||||
;; language you want ellama to translate to
|
||||
(setopt ellama-language "English")
|
||||
;; could be llm-openai for example
|
||||
(require 'llm-ollama)
|
||||
(setopt ellama-provider
|
||||
(make-llm-ollama
|
||||
;; this model should be pulled to use it
|
||||
;; 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"
|
||||
:embedding-model "nomic-embed-text"
|
||||
:default-chat-non-standard-params '(("num_ctx" . 8192))))
|
||||
;; (setopt ellama-summarization-provider
|
||||
;; (make-llm-ollama
|
||||
;; :chat-model "qwen2.5:3b"
|
||||
;; :embedding-model "nomic-embed-text"
|
||||
;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
||||
;; (setopt ellama-coding-provider
|
||||
;; (make-llm-ollama
|
||||
;; :chat-model "qwen2.5-coder"
|
||||
;; :embedding-model "nomic-embed-text"
|
||||
;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
||||
;; Predefined llm providers for interactive switching.
|
||||
;; You shouldn't add ollama providers here - it can be selected interactively
|
||||
;; without it. It is just example.
|
||||
;; Naming new sessions with llm
|
||||
(setopt ellama-naming-provider
|
||||
(make-llm-ollama
|
||||
:chat-model "deepseek-r1:1.5b"
|
||||
:embedding-model "nomic-embed-text"
|
||||
:default-chat-non-standard-params '(("stop" . ("\n")))))
|
||||
(setopt ellama-naming-scheme 'ellama-generate-name-by-llm)
|
||||
;; Translation llm provider
|
||||
(setopt ellama-translation-provider
|
||||
(make-llm-ollama
|
||||
:chat-model "deepseek-r1:1.5b"
|
||||
:embedding-model "nomic-embed-text"
|
||||
:default-chat-non-standard-params
|
||||
'(("num_ctx" . 32768))))
|
||||
(setopt ellama-extraction-provider (make-llm-ollama
|
||||
:chat-model "qwen2.5-coder:14b"
|
||||
:embedding-model "nomic-embed-text"
|
||||
:default-chat-non-standard-params
|
||||
'(("num_ctx" . 32768))))
|
||||
;; customize display buffer behaviour
|
||||
;; see ~(info "(elisp) Buffer Display Action Functions")~
|
||||
(setopt ellama-chat-display-action-function #'display-buffer-full-frame)
|
||||
(setopt ellama-instant-display-action-function #'display-buffer-at-bottom)
|
||||
:config
|
||||
;; show ellama context in header line in all buffers
|
||||
;; (ellama-context-header-line-global-mode nil)
|
||||
;; show ellama session id in header line in all buffers
|
||||
;; (ellama-session-header-line-global-mode nil)
|
||||
;; handle scrolling events
|
||||
(advice-add 'pixel-scroll-precision :before #'ellama-disable-scroll)
|
||||
(advice-add 'end-of-buffer :after #'ellama-enable-scroll))
|
||||
;; ellama keybinds
|
||||
(map! :leader
|
||||
:nv "e" #'ellama
|
||||
)
|
||||
;; (use-package! ellama
|
||||
;; :ensure t
|
||||
;; ;; :bind ("SPC e" . ellama)
|
||||
;; ;; send last message in chat buffer with C-c C-c
|
||||
;; :hook (org-ctrl-c-ctrl-c-final . ellama-chat-send-last-message)
|
||||
;; :init
|
||||
;; ;; setup key bindings
|
||||
;; ;; (setopt ellama-keymap-prefix "C-c e")
|
||||
;; ;; language you want ellama to translate to
|
||||
;; (setopt ellama-language "English")
|
||||
;; ;; could be llm-openai for example
|
||||
;; (require 'llm-ollama)
|
||||
;; (setopt ellama-provider
|
||||
;; (make-llm-ollama
|
||||
;; ;; this model should be pulled to use it
|
||||
;; ;; 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"
|
||||
;; :embedding-model "nomic-embed-text"
|
||||
;; :default-chat-non-standard-params '(("num_ctx" . 8192))))
|
||||
;; ;; (setopt ellama-summarization-provider
|
||||
;; ;; (make-llm-ollama
|
||||
;; ;; :chat-model "qwen2.5:3b"
|
||||
;; ;; :embedding-model "nomic-embed-text"
|
||||
;; ;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
||||
;; ;; (setopt ellama-coding-provider
|
||||
;; ;; (make-llm-ollama
|
||||
;; ;; :chat-model "qwen2.5-coder"
|
||||
;; ;; :embedding-model "nomic-embed-text"
|
||||
;; ;; :default-chat-non-standard-params '(("num_ctx" . 32768))))
|
||||
;; ;; Predefined llm providers for interactive switching.
|
||||
;; ;; You shouldn't add ollama providers here - it can be selected interactively
|
||||
;; ;; without it. It is just example.
|
||||
;; ;; Naming new sessions with llm
|
||||
;; (setopt ellama-naming-provider
|
||||
;; (make-llm-ollama
|
||||
;; :chat-model "deepseek-r1:1.5b"
|
||||
;; :embedding-model "nomic-embed-text"
|
||||
;; :default-chat-non-standard-params '(("stop" . ("\n")))))
|
||||
;; (setopt ellama-naming-scheme 'ellama-generate-name-by-llm)
|
||||
;; ;; Translation llm provider
|
||||
;; (setopt ellama-translation-provider
|
||||
;; (make-llm-ollama
|
||||
;; :chat-model "deepseek-r1:1.5b"
|
||||
;; :embedding-model "nomic-embed-text"
|
||||
;; :default-chat-non-standard-params
|
||||
;; '(("num_ctx" . 32768))))
|
||||
;; (setopt ellama-extraction-provider (make-llm-ollama
|
||||
;; :chat-model "qwen2.5-coder:14b"
|
||||
;; :embedding-model "nomic-embed-text"
|
||||
;; :default-chat-non-standard-params
|
||||
;; '(("num_ctx" . 32768))))
|
||||
;; ;; customize display buffer behaviour
|
||||
;; ;; see ~(info "(elisp) Buffer Display Action Functions")~
|
||||
;; (setopt ellama-chat-display-action-function #'display-buffer-full-frame)
|
||||
;; (setopt ellama-instant-display-action-function #'display-buffer-at-bottom)
|
||||
;; :config
|
||||
;; ;; show ellama context in header line in all buffers
|
||||
;; ;; (ellama-context-header-line-global-mode nil)
|
||||
;; ;; show ellama session id in header line in all buffers
|
||||
;; ;; (ellama-session-header-line-global-mode nil)
|
||||
;; ;; handle scrolling events
|
||||
;; (advice-add 'pixel-scroll-precision :before #'ellama-disable-scroll)
|
||||
;; (advice-add 'end-of-buffer :after #'ellama-enable-scroll))
|
||||
;; ;; ellama keybinds
|
||||
;; (map! :leader
|
||||
;; :nv "e" #'ellama
|
||||
;; )
|
||||
;; I really needed this a long time ago
|
||||
;; Markdown enter )
|
||||
(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")
|
||||
(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)
|
||||
(setq telega-tdlib-min-version "1.8.55")
|
||||
|
||||
Reference in New Issue
Block a user