branch: externals/ellama
commit 6b0108b8d6d538b1f68a338e337855f485854712
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>

    fix conversation memory (fixes #5)
---
 ellama.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ellama.el b/ellama.el
index 3bd671950e..b2380baa7a 100644
--- a/ellama.el
+++ b/ellama.el
@@ -185,7 +185,7 @@ default. Default value is `ellama-template'."
        (system (plist-get args :system))
        (temperature (plist-get args :temperature))
        (template (or (plist-get args :template) ellama-template)))
-    (when (not (bufferp buffer))
+    (when (not (get-buffer buffer))
       (create-file-buffer buffer)
       (with-current-buffer buffer
        (if ellama-buffer-mode

Reply via email to