From 7fc7f456d02cf3055f654ba311c2fbe8a7d4dcc1 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 11 Apr 2025 00:38:53 -0700 Subject: [PATCH] comment --- core/llm/constructMessages.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index 4e80b91c8..f3e2d8c3e 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -99,6 +99,7 @@ export function constructMessages( }); } + // We dispatch an empty assistant chat message to the history on submission. Don't send it const lastMessage = msgs.at(-1); if ( lastMessage &&