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

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

[elpa] externals/llm 1c3727ce50 05/13: Restored comment that I had accid


From: ELPA Syncer
Subject: [elpa] externals/llm 1c3727ce50 05/13: Restored comment that I had accidentally dropped from the generate endpoint helper.
Date: Wed, 7 Feb 2024 18:58:11 -0500 (EST)

branch: externals/llm
commit 1c3727ce50b972732fda70bce7b1878a195d2acc
Author: Thomas E. Allen <thomas@assistivemachines.com>
Commit: Thomas E. Allen <thomas@assistivemachines.com>

    Restored comment that I had accidentally dropped from the generate endpoint 
helper.
---
 llm-ollama.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/llm-ollama.el b/llm-ollama.el
index 3cea971ee4..0ccdfafdf2 100644
--- a/llm-ollama.el
+++ b/llm-ollama.el
@@ -110,6 +110,8 @@ Returns REQUEST-ALIST with prompt request data."
   (let (request-alist)
     (when (llm-chat-prompt-context prompt)
       (push `("system" . ,(llm-provider-utils-get-system-prompt prompt 
llm-ollama-example-prelude)) request-alist))
+    ;; If the first item isn't an interaction, then it's a conversation which
+    ;; we'll set as the chat context.    
     (when (not (eq (type-of (car (llm-chat-prompt-interactions prompt)))
                    'llm-chat-prompt-interaction))
       (push `("context" . ,(car (llm-chat-prompt-interactions prompt))) 
request-alist))



reply via email to

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