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

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

[elpa] externals/ellama 90ec5e86ba: Fix non-chat commands


From: ELPA Syncer
Subject: [elpa] externals/ellama 90ec5e86ba: Fix non-chat commands
Date: Thu, 15 Feb 2024 09:57:56 -0500 (EST)

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

    Fix non-chat commands
---
 NEWS.org  | 2 ++
 ellama.el | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/NEWS.org b/NEWS.org
index 080e49fb9c..c36f05f9cb 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -1,3 +1,5 @@
+* Version 0.8.3
+- Fix non-chat commands.
 * Version 0.8.2
 - Fix chat on model switching.
 * Version 0.8.1
diff --git a/ellama.el b/ellama.el
index bf9e737597..17e390ce95 100644
--- a/ellama.el
+++ b/ellama.el
@@ -6,7 +6,7 @@
 ;; URL: http://github.com/s-kostyaev/ellama
 ;; Keywords: help local tools
 ;; Package-Requires: ((emacs "28.1") (llm "0.6.0") (spinner "1.7.4") (dash 
"2.19.1"))
-;; Version: 0.8.2
+;; Version: 0.8.3
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;; Created: 8th Oct 2023
 
@@ -866,7 +866,8 @@ when the request completes (with BUFFER current)."
        (set-marker-insertion-type start nil)
        (set-marker-insertion-type end t)
        (spinner-start ellama-spinner-type)
-       (setf (ellama-session-context session) nil)
+       (when session
+         (setf (ellama-session-context session) nil))
        (setq ellama--current-request
              (llm-chat-streaming provider
                                  llm-prompt



reply via email to

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