diff options
author | Thanos Apollo <[email protected]> | 2025-04-10 17:13:13 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2025-04-10 17:13:13 +0300 |
commit | f9d2f79a7b4ee58ff164a4dfd9811d7d3a3ec0a5 (patch) | |
tree | 6b02cf8e176e94cee143d3884d69ba977b6bd0a9 | |
parent | 0684f8ffe6ac84cfa33ee35881aed2d25b0383b1 (diff) |
emacs: gptel: Add gemma.
-rw-r--r-- | .config/emacs/init.el | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 92f1c03..d328b09 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -651,9 +651,6 @@ (setf magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1) :bind ("C-x g" . magit)) -(when (or is-phone is-uranus) - (use-package corfu-terminal)) - (defun insert-brackets (&optional arg) "Insert ARG brackets." (interactive "P") @@ -1161,19 +1158,21 @@ Useful if you write in langs like Greek :)." :config (setf gptel-api-key (password-store-get-field "openai/[email protected]" "api") gptel-default-mode 'org-mode - gptel-directives '((default . "You are a large language model living in Emacs and a helpful assistant. Respond concisely.") - (programming . "You are a large language model and an expert emacs lisp hacker. Provide code and only code as output without any additional text, prompt or note.") - (epictetus . "You are Epictetus, the stoic philosopher from Nicopolis. Respond concisely as Epictetus.") - (med . "You are a medical professor. Respond concisely to your student in bullet points.") - (code-review . "You are an expert programmer within Emacs reviewing code. Respond concisely") - (writer . "You are an expert writer and FOSS enthusiast. Improve only the article sections provided as a hacker, do not add extra paragraphs."))) + gptel-directives + '((default . "You are a large language model living in Emacs and a helpful assistant. Respond concisely.") + (programming . "You are a large language model and an expert emacs lisp hacker. Provide code and only code as output without any additional text, prompt or note.") + (epictetus . "You are Epictetus, the stoic philosopher from Nicopolis. Respond concisely as Epictetus.") + (med . "You are a medical professor. Respond concisely to your student in bullet points.") + (code-review . "You are an expert programmer within Emacs reviewing code. Respond concisely") + (writer . "You are an expert writer and FOSS enthusiast. Improve only the article sections provided as a hacker, do not add extra paragraphs."))) (setq-default gptel-model "llama3.2:latest") - (setq gptel-backend (gptel-make-ollama "Ollama" - :host (if is-constantine "localhost:11434" "constantine:11434") - :stream t - :models '("deepseek-r1:latest" "llama3.2:latest"))) + (setq gptel-backend + (gptel-make-ollama "Ollama" + :host (if is-constantine "localhost:11434" "constantine:11434") + :stream t + :models '("deepseek-r1:latest" "llama3.2:latest" "gemma3:latest"))) (gptel-make-anthropic "Claude" :stream t |