gptel with better defaults and from doom
This commit is contained in:
@@ -315,6 +315,33 @@
|
|||||||
;; (setq gptel-models
|
;; (setq gptel-models
|
||||||
;; '(("Ollama" "localhost:11434" nil "http" t "/api/chat" nil
|
;; '(("Ollama" "localhost:11434" nil "http" t "/api/chat" nil
|
||||||
;; (qwen3:0.6B qwen3:32b hf.co/unsloth/Qwen3-30B-A3B-GGUF:Q5_K_M) "http://localhost:11434/api/chat" nil nil)))
|
;; (qwen3:0.6B qwen3:32b hf.co/unsloth/Qwen3-30B-A3B-GGUF:Q5_K_M) "http://localhost:11434/api/chat" nil nil)))
|
||||||
|
;; 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"))))
|
||||||
|
(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 '(qwen2.5-coder:7b
|
||||||
|
qwen3:0.6B
|
||||||
|
(qwen2.5-coder:32b ;Full spec
|
||||||
|
:description
|
||||||
|
"qwen2.5 coder 32b: large coding model "
|
||||||
|
:capabilities (tools media)
|
||||||
|
:mime-types ("image/jpeg" "image/png" "image/svg")))))
|
||||||
|
|
||||||
|
|
||||||
;; org-roam v1 port to v2, insert node without opening buffer
|
;; org-roam v1 port to v2, insert node without opening buffer
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
;;word-wrap ; soft wrapping with language-aware indent
|
;;word-wrap ; soft wrapping with language-aware indent
|
||||||
|
|
||||||
:emacs
|
:emacs
|
||||||
;; dired ; making dired pretty [functional]
|
dired ; making dired pretty [functional]
|
||||||
;; electric ; smarter, keyword-based electric-indent
|
;; electric ; smarter, keyword-based electric-indent
|
||||||
;;ibuffer ; interactive buffer management
|
;;ibuffer ; interactive buffer management
|
||||||
;; undo ; persistent, smarter undo for your inevitable mistakes
|
;; undo ; persistent, smarter undo for your inevitable mistakes
|
||||||
@@ -96,13 +96,14 @@
|
|||||||
;;ein ; tame Jupyter notebooks with emacs
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
;; (eval +overlay) ; run code, run (also, repls)
|
;; (eval +overlay) ; run code, run (also, repls)
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
;; (lookup -org) ; navigate your code and its documentation
|
llm
|
||||||
;; (lsp +peek) ;; +peek removed for now
|
(lookup -org) ; navigate your code and its documentation
|
||||||
|
(lsp +peek) ;; +peek removed for now
|
||||||
(magit -gitflow) ; a git porcelain for Emacs
|
(magit -gitflow) ; a git porcelain for Emacs
|
||||||
;;make ; run make tasks from Emacs
|
;;make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
;;pdf ; pdf enhancements
|
;;pdf ; pdf enhancements
|
||||||
;;prodigy ; FIXME managing external services & code builders
|
;;prodi:gy ; FIXME managing external services & code builders
|
||||||
;;rgb ; creating color strings
|
;;rgb ; creating color strings
|
||||||
;;taskrunner ; taskrunner for all your projects
|
;;taskrunner ; taskrunner for all your projects
|
||||||
;;terraform ; infrastructure as code
|
;;terraform ; infrastructure as code
|
||||||
|
|||||||
Reference in New Issue
Block a user