From 207f3a310e75efcf80254ba1f70e226bcc2581ab Mon Sep 17 00:00:00 2001 From: Rostyslav Manko Date: Tue, 14 Jan 2025 13:56:24 -0500 Subject: [PATCH] refactor(build-prompt-v2): remove console.log --- lib/build-prompt-v2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build-prompt-v2.ts b/lib/build-prompt-v2.ts index a52435d0..7455ca0c 100644 --- a/lib/build-prompt-v2.ts +++ b/lib/build-prompt-v2.ts @@ -40,7 +40,7 @@ export async function buildFinalMessages( } let remainingTokens = CHUNK_SIZE - console.log("CHUNK_SIZE", CHUNK_SIZE) + const lastUserMessage = chatMessages[chatMessages.length - 2].message.content const lastUserMessageContent = Array.isArray(lastUserMessage) ? lastUserMessage