diff options
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 30 |
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")) |