[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama 447c4ddd88 17/37: Enhance ellama-complete filter
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama 447c4ddd88 17/37: Enhance ellama-complete filtering |
Date: |
Sat, 8 Mar 2025 06:58:35 -0500 (EST) |
branch: externals/ellama
commit 447c4ddd884c361dbfe9f1d81d4b353efd4ba582
Author: Sergey Kostyaev <sskostyaev@gmail.com>
Commit: Sergey Kostyaev <sskostyaev@gmail.com>
Enhance ellama-complete filtering
Refined the ellama-complete function to include additional context for
filtering
by considering the last line and word of the selected text. This provides
more
accurate trimming of responses related to the input content.
---
ellama.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/ellama.el b/ellama.el
index e69c4f6b9c..e2d6362806 100644
--- a/ellama.el
+++ b/ellama.el
@@ -2639,10 +2639,14 @@ the full response text when the request completes (with
BUFFER current)."
(end (if (region-active-p)
(region-end)
(point)))
- (text (buffer-substring-no-properties beg end)))
+ (text (buffer-substring-no-properties beg end))
+ (line (car (reverse (string-lines text))))
+ (word (car (reverse (string-split line " ")))))
(ellama-stream text
:system ellama-complete-prompt-template
- :filter (lambda (s) (string-trim-left s (rx (literal
text)))))))
+ :filter (lambda (s) (string-trim-left s (rx (or (literal
text)
+ (literal
line)
+ (literal
word))))))))
(defvar vc-git-diff-switches)
(declare-function vc-diff-internal "vc")
- [elpa] externals/ellama db415af6ac 09/37: Refactor blueprint creation functions and add transient menu, (continued)
- [elpa] externals/ellama db415af6ac 09/37: Refactor blueprint creation functions and add transient menu, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama c2256c633d 25/37: Extracted ellama context management functionality to a new file, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 1d5c5ecdb1 13/37: Add function to run chat with llm using blueprint, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 7ff0c82d73 11/37: Fix linter warning, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 078a94f1d8 10/37: Remove debug messages from `ellama.el`, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama d3e3e38cc3 26/37: Remove fill-region from ellama-blueprint-select, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama f373c50e3f 03/37: WIP: highlight variables in `ellama-blueprint-mode`, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama c4edfd05ef 05/37: Fix typo in buffer variable name, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 376f0dc63c 15/37: Remove optional argument in prompt selection function, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 97cebc8714 20/37: Fix syntax in documentation, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 447c4ddd88 17/37: Enhance ellama-complete filtering,
ELPA Syncer <=
- [elpa] externals/ellama 286a714692 34/37: Imrove `ellama-transient-set-system` docstring., ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 9f614f397d 36/37: Add transient menu for blueprint mode commands, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama e370c3f23a 37/37: Merge pull request #253 from s-kostyaev/user-defined-blueprints, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama b486e21e7f 19/37: Add parenthesis fixing feature, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 37735f6daa 22/37: Move Ellama Blueprint functionality to separate file, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 2f607cf4e2 35/37: Add system message editing functionality, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama e4dd5d4965 31/37: fix ellama-blueprints customization type, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 32886c9c16 33/37: Bump version, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama ed11f32a6c 29/37: Refactor transient menu functionality, ELPA Syncer, 2025/03/08
- [elpa] externals/ellama 72d7fe8a29 04/37: Make ellama community prompts blueprint buffer visible, ELPA Syncer, 2025/03/08