From 825ff4ac2d638464ff1457ccb401456145abaee2 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 3 Apr 2024 05:05:46 +0300 Subject: emacs:(gptel) Update defaults --- .emacs.d/init.el | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to '.emacs.d/init.el') 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/openai@thanosapollo.org" "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")) -- cgit v1.2.3