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}`;