diff --git a/config.el b/config.el index 7c191d9..88f2872 100644 --- a/config.el +++ b/config.el @@ -88,33 +88,6 @@ ;; ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how ;; they are implemented. -;; embedd llms in emacs. with org-mode support -(use-package ellama - :init - ;; setup key bindings - (setopt ellama-keymap-prefix "C-c e") - ;; language you want ellama to translate to - (setopt ellama-language "Dutch") - ;; 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 "llama3.1:8b-instruct-q8_0" - :embedding-model "nomic-embed-text" - :default-chat-non-standard-params '(("num_ctx" . 8192)))) - ;; Naming new sessions with llm - (setopt ellama-naming-provider - (make-llm-ollama - :chat-model "llama3.1:8b-instruct-q8_0" - :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 "llama3.1" - :embedding-model "nomic-embed-text"))) ;; https://yannesposito.com/posts/0029-ai-assistants-in-doom-emacs-31-on-macos-with-clojure-mcp-server/index.html ;; LLM (use-package! gptel @@ -155,8 +128,13 @@ :protocol "http" :stream t :models '(Qwen3-Coder-Next-UD-Q4_K_XL)) - (set-default gptel-model 'Qwen3-Coder-Next-UD-Q4_K_XL)) + (gptel-make-openai "MTPLX on mac" + :host "mb:8001" + :protocol "http" + :stream t + :models '(mtplx-qwen38-27b-optimized-speed)) + (set-default gptel-model 'mtplx-qwen38-27b-optimized-speed)) ;; elixir ;; inspiration https://medium.com/@victor.nascimento/elixir-emacs-development-2023-edition-1a6ccc40629 diff --git a/custom.el b/custom.el index e69de29..f48925a 100644 --- a/custom.el +++ b/custom.el @@ -0,0 +1,19 @@ +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(safe-local-variable-values + '((qwan-markdown-attachment-dir . "/Users/willem/dev/elixir/firehose/app/priv/static/images/blog/2026") + (qwan-markdown-attachment-dir . "app/priv/static/images/blog/2026") + (eval setq-local org-roam-db-location + (expand-file-name "org-roam.db" org-roam-directory)) + (eval setq-local org-roam-directory + (expand-file-name + (locate-dominating-file default-directory ".dir-locals.el")))))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + )