From 6d972bc5fb5c84ec1dd9f8b2e301047e23422c8b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 18:00:47 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(llm)=20Playing=20around=20with=20c?= =?UTF-8?q?hatgpt-shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Though, I still don't know why --- config.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config.org b/config.org index 50df662..73c6503 100644 --- a/config.org +++ b/config.org @@ -2871,6 +2871,24 @@ The following function from him takes care of the other way: bringing a message (global-set-key (kbd "C-c M-m") 'mmk2410/convert-mail-header-to-org-link) #+end_src +* LLM + +#+begin_src emacs-lisp +(use-package chatgpt-shell + :config + (setq chatgpt-shell-models + '(((:provider . "Ollama") + (:label . "Ollama") + (:version . "mistral:latest") + (:short-version . "mistral") + (:token-width . 3) + (:context-window . 131072) + (:handler . chatgpt-shell-ollama--handle-ollama-command) + (:filter . chatgpt-shell-ollama--extract-ollama-response) + (:payload . chatgpt-shell-ollama-make-payload) + (:url . chatgpt-shell-ollama--make-url))))) +#+end_src + * Helpers ** Tab Bar Setup