From 57db71b7f6113ecd83707b6f5a3fbeea8441cbc3 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 22 Feb 2024 13:05:04 -0600 Subject: [PATCH] fixing ellama to work betterer --- README.org | 31 +++++++++++++++++++++++++++---- init.el | 31 +++++++++++++++++++++++++++---- recentf | 2 +- 3 files changed, 55 insertions(+), 9 deletions(-) diff --git a/README.org b/README.org index fd2cae7b..5fbe0d5f 100644 --- a/README.org +++ b/README.org @@ -2119,12 +2119,33 @@ Idk, let's try this i guess (setopt ellama-buffer-mode 'markdown-mode ellama-user-nick "Chris" ellama-assistant-nick "Jeeves" + ellama-auto-scroll t ellama-provider (make-llm-ollama :scheme "https" :host "ai.tfcconnection.org" :port 443 - :chat-model "mistral" :embedding-model "mistral")) + :chat-model "dolphin-mistral" :embedding-model "dolphin-mistral")) + + (setopt ellama-providers + '(("mistral" . (make-llm-ollama + :scheme "https" + :host "ai.tfcconnection.org" + :port 443 + :chat-model "mistral" + :embedding-model "mistral")) + ("openhermes" . (make-llm-ollama + :scheme "https" + :host "ai.tfcconnection.org" + :port 443 + :chat-model "openhermes:7b-mistral-v2.5-q6_K" + :embedding-model "openhermes:7b-mistral-v2.5-q6_K")) + ("dolphin" . (make-llm-ollama + :scheme "https" + :host "ai.tfcconnection.org" + :port 443 + :chat-model "dolphin-uncensored" + :embedding-model "dolphin-uncensored")))) :general (chris/leader-keys :states '(normal visual) @@ -2133,9 +2154,11 @@ Idk, let's try this i guess "la" 'ellama-chat "lb" 'ellama-ask-about "lc" 'ellama-code-review - "lec" 'ellama-enhance-code - "leg" 'ellama-enhance-grammar-spelling - "lew" 'ellama-enhance-wording)) + "lec" 'ellama-code-improve + "leg" 'ellama-improve-grammar + "leC" 'ellama-improve-conciseness + "lew" 'ellama-improve-wording + "ls" 'ellama-provider-select)) #+end_src ** Jinx diff --git a/init.el b/init.el index d896ceb1..7fe90019 100644 --- a/init.el +++ b/init.el @@ -1613,12 +1613,33 @@ Optional BACKEND must be `re-reveal' or a backend derived from it." (setopt ellama-buffer-mode 'markdown-mode ellama-user-nick "Chris" ellama-assistant-nick "Jeeves" + ellama-auto-scroll t ellama-provider (make-llm-ollama :scheme "https" :host "ai.tfcconnection.org" :port 443 - :chat-model "mistral" :embedding-model "mistral")) + :chat-model "dolphin-mistral" :embedding-model "dolphin-mistral")) + + (setopt ellama-providers + '(("mistral" . (make-llm-ollama + :scheme "https" + :host "ai.tfcconnection.org" + :port 443 + :chat-model "mistral" + :embedding-model "mistral")) + ("openhermes" . (make-llm-ollama + :scheme "https" + :host "ai.tfcconnection.org" + :port 443 + :chat-model "openhermes:7b-mistral-v2.5-q6_K" + :embedding-model "openhermes:7b-mistral-v2.5-q6_K")) + ("dolphin" . (make-llm-ollama + :scheme "https" + :host "ai.tfcconnection.org" + :port 443 + :chat-model "dolphin-uncensored" + :embedding-model "dolphin-uncensored")))) :general (chris/leader-keys :states '(normal visual) @@ -1627,9 +1648,11 @@ Optional BACKEND must be `re-reveal' or a backend derived from it." "la" 'ellama-chat "lb" 'ellama-ask-about "lc" 'ellama-code-review - "lec" 'ellama-enhance-code - "leg" 'ellama-enhance-grammar-spelling - "lew" 'ellama-enhance-wording)) + "lec" 'ellama-code-improve + "leg" 'ellama-improve-grammar + "leC" 'ellama-improve-conciseness + "lew" 'ellama-improve-wording + "ls" 'ellama-provider-select)) (use-package jinx ;; :hook (emacs-startup . global-jinx-mode) diff --git a/recentf b/recentf index 011882d4..d1cb2e11 100644 --- a/recentf +++ b/recentf @@ -1,4 +1,4 @@ -;;; Automatically generated by ‘recentf’ on Wed Oct 25 05:57:27 2023. +;;; Automatically generated by ‘recentf’ on Wed Feb 21 13:54:13 2024. (setq recentf-list '(