emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ellama 9176a204aa 1/3: Add function ellama-context-add-


From: ELPA Syncer
Subject: [elpa] externals/ellama 9176a204aa 1/3: Add function ellama-context-add-text for non-intercative usage
Date: Thu, 4 Jul 2024 18:58:08 -0400 (EDT)

branch: externals/ellama
commit 9176a204aa0f7d299d9c1f357d689a312cf5a1df
Author: Sergey Kostyaev <sskostyaev@gmail.com>
Commit: Sergey Kostyaev <sskostyaev@gmail.com>

    Add function ellama-context-add-text for non-intercative usage
---
 ellama.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ellama.el b/ellama.el
index 11050231ae..2f95aeb17d 100644
--- a/ellama.el
+++ b/ellama.el
@@ -1117,6 +1117,11 @@ If EPHEMERAL non nil new session will not be associated 
with any file."
         (ellama-context-element-add element))
     (warn "No active region")))
 
+(defun ellama-context-add-text (text)
+  "Add TEXT to context."
+  (let ((element (ellama-context-element-text :content text)))
+    (ellama-context-element-add element)))
+
 ;;;###autoload
 (defun ellama-context-add-info-node (node)
   "Add info NODE to context."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]