From 5516e4c20b1862676f617cce1524b1df309ef2e6 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Fri, 5 May 2023 18:32:46 +0200 Subject: [PATCH] remove redunant code --- llamabot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llamabot.js b/llamabot.js index 9c8dffb..f0f2854 100644 --- a/llamabot.js +++ b/llamabot.js @@ -226,7 +226,7 @@ async function generateResponse(conversation, message) { if (plainTextContent.length > MAX_CONTENT_LENGTH) { plainTextContent = plainTextContent.substring(0, MAX_CONTENT_LENGTH) + '...'; } - response += `Content: ${plainTextContent.trim().replace(/[\n\r]+| +/g, ' ')}`; + response += `Content: ${plainTextContent.trim()}`; } response += `URL: ${url}`;