summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-10-12 23:30:09 -0400
committerbd <bdunahu@operationnull.com>2025-10-12 23:30:09 -0400
commitccba0ddb232bf0adafd1ece3b4db8c7b1fa04ff8 (patch)
treeb4a96caf7abbf195981395442d910fec32bb818c
parentf1a4ebbbc3c590ee439ffa27b9286384ff940cb0 (diff)
Further small tweeks to gptel settings
-rw-r--r--.config/emacs/modules/bd--chat.el11
-rw-r--r--.gitignore2
2 files changed, 8 insertions, 5 deletions
diff --git a/.config/emacs/modules/bd--chat.el b/.config/emacs/modules/bd--chat.el
index a55f10a..41a9262 100644
--- a/.config/emacs/modules/bd--chat.el
+++ b/.config/emacs/modules/bd--chat.el
@@ -59,13 +59,14 @@ channel, which is issuing the PART command."
:encryption tls))))
(use-package gptel
- :bind (("C-c g" . gptel-menu))
+ :bind (("C-c g" . gptel-menu)
+ ("C-c C-g" . (lambda () (interactive) (gptel "*evka*") (switch-to-buffer "*evka*"))))
:config
(defvar bd/llama-cpp-buffer-name "*llama-cpp-proc*")
(defvar bd/llama-cpp-reasoning-buffer-name "*llama-cpp-reasoning*")
(defvar bd/llama-cpp-port "4568")
(defvar bd/llama-cpp-threads "8")
- (defvar bd/llama-cpp-model-file "~/.config/guix/assets/Qwen3-4B.Q3_K_M.gguf")
+ (defvar bd/llama-cpp-model-file "Qwen3-4B-Q4_K_M.gguf")
(defvar bd/llama-cpp-reasoning-budget nil)
(defun bd/gptel-start-backend ()
(interactive)
@@ -79,7 +80,7 @@ channel, which is issuing the PART command."
(if bd/llama-cpp-reasoning-budget "-1" "0")
" --port " bd/llama-cpp-port
" -t " bd/llama-cpp-threads
- " -m " bd/llama-cpp-model-file)))
+ " -m " (expand-file-name bd/llama-cpp-model-file "~/.config/guix/assets/"))))
(unless (get-buffer bd/llama-cpp-reasoning-buffer-name)
(generate-new-buffer bd/llama-cpp-reasoning-buffer-name)))))
(defun bd/gptel-stop-backend ()
@@ -96,6 +97,8 @@ channel, which is issuing the PART command."
(bd/gptel-stop-backend)
(bd/gptel-start-backend))
+ (bd/gptel-start-backend)
+
(setopt gptel-model 'qwen-4b
gptel-backend (gptel-make-openai "llama-cpp"
:stream t
@@ -106,7 +109,7 @@ channel, which is issuing the PART command."
gptel-include-reasoning bd/llama-cpp-reasoning-buffer-name)
(gptel-make-preset 'default
- :system "You are a wolf (furry) named Evka hired as a secretary to complete language-based tasks. First describe an action your character does, e.x.: *I tap my claws on the desk*. Finish by responding to the task as tersely as possible, in character."))
+ :system "You are a wolf (furry) named Evka hired as a secretary to complete language-based tasks. Keep the thinking stage brief. First describe an action your character does, e.x.: *I tap my claws on the desk*. Finish by responding to the task as tersely as possible, in character."))
(provide 'bd--chat)
diff --git a/.gitignore b/.gitignore
index a21f54f..4f1a54c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,5 +6,5 @@
.config/emacs/gnus-home/
.local/bin/
.config/emacs/modules/bd--secret.el
-.config/guix/assets/blocklist.txt
+.config/guix/assets/*
.config/guix/modules/services/mail.scm