summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-03 05:05:46 +0300
committerThanos Apollo <[email protected]>2024-04-03 05:05:46 +0300
commit825ff4ac2d638464ff1457ccb401456145abaee2 (patch)
treef46e034a2021889545b98e16d584960aa061ceb2 /.emacs.d/init.el
parentc84225136932ea01ff72619d46ef66270b68747c (diff)
emacs:(gptel) Update defaults
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el30
1 files changed, 16 insertions, 14 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 32f70b4..a3fa689 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -721,20 +721,22 @@
:defer t
:config
(setf gptel-api-key (password-store-get-field "openai/[email protected]" "api")
- gptel-default-mode 'org-mode
- gptel-model "zephyr:latest"
- gptel-backend (gptel-make-ollama "Ollama"
- :host "zeus:11434"
- :stream t
- :models '("llama2:latest" "zephyr:latest" "codellama:latest"
- "mistral:latest" "mixtral:latest" "neural-chat:latest"))
- 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 a careful programmer. Provide code and only code as output without any additional text, prompt or note.")
- (writing . "You are a large language model and a writing assistant. Respond concisely.")
- (chat . "You are a large language model and a conversation partner. Respond concisely.")
- (med . "You are a medical professor within the Emacs. Respond concisely.")))
- :bind (:map gptel-mode-map
- ("C-c h" . 'gptel-menu)))
+ gptel-default-mode 'org-mode)
+ (setq-default gptel-model "zephyr:latest"
+ gptel-backend (gptel-make-ollama "Ollama"
+ :host "zeus:11434"
+ :stream t
+ :models '("llama2:latest" "zephyr:latest" "codellama:latest"
+ "mistral:latest" "mixtral:latest" "neural-chat:latest"
+ "dolphin-mixtral:latest"))
+ 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 a careful programmer. 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 within the Emacs. Respond concisely.")
+ (code-review . "You are an expert programmer within Emacs reviewing code. Respond concisely")))
+ :bind (("C-c g" . 'gptel-send)
+ :map gptel-mode-map
+ ("C-c h" . 'gptel-menu)))
(use-package copilot
:straight (copilot :host github :repo "zerolfx/copilot.el" :files ("dist" "*.el"))