From 3ef0e44ac362e0aee79e7c68272a7620fa36c00a Mon Sep 17 00:00:00 2001 From: Deadly Artist Date: Fri, 12 Jul 2024 19:23:28 +0200 Subject: [PATCH] ... --- js/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/worker.js b/js/worker.js index 62f7233..7e912df 100644 --- a/js/worker.js +++ b/js/worker.js @@ -959,7 +959,7 @@ class Samples { const userMessageElement = createText(paragraphType, `User:\n${prompt}`, {bordered: true}); const assistantMessageElement = createMarkdown("", {name: counter}); - await showGroup([userMessageElement, assistantMessageElement], {insertAt: context.length - 1, name: counter}); + await showGroup([userMessageElement, assistantMessageElement], {insertAt: counter, name: counter}); const result = await chat(context, {element: counter}); context.push(toAssistantMessage(result));