change default model to local thinking

This commit is contained in:
Willem van den Ende
2025-11-09 16:36:04 +00:00
parent e99387c8c4
commit 9fd20cb6ee
+36
View File
@@ -51,6 +51,12 @@
(add-load-path! "~/dev/emacs/org-roaming")
(require 'my-org-roam)
(add-load-path! "~/.config/doom/qwan")
(require 'qwan-blog)
(require 'qwan-refactor)
;; Whenever you reconfigure a package, make sure to wrap your config in an
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
;;
@@ -109,3 +115,33 @@
(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
:init
;; declare the default llm configuration
;; for me this is co-pilot with claude-sonnet-4
(setq gptel-default-mode 'org-mode ;; I want the llm to reply to me with org-mode format.
gptel-backend (gptel-make-openai "llama.cpp"
:host "localhost:8000"
:protocol "http"
:stream t
:models '(Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf))
gptel-model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf)
;; Do not use chatgpt as default. took long to find.
(setq-default gptel-model 'hf.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF:UD-Q4_K_XL)
(require 'gptel-integrations) ;; <- for mcp
;; declare another llm configuration, I also use Ollama to easily use multiple smaller models that don't require
;; max speed or the latest API.
(gptel-make-ollama "Ollama"
:host "localhost:11434"
:stream t
:models '(hf.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF:UD-Q4_K_XL
qwen3:0.6B
(qwen3-coder:30b ;Full spec
:description
"qwen3 coder large coding model "
:capabilities (tools media)
:mime-types ("image/jpeg" "image/png" "image/svg")))))