remove redunant code

This commit is contained in:
Raven Scott 2023-05-05 18:32:46 +02:00 committed by MrTuxedo
parent 9489068b8e
commit 5516e4c20b

View File

@ -226,7 +226,7 @@ async function generateResponse(conversation, message) {
if (plainTextContent.length > MAX_CONTENT_LENGTH) { if (plainTextContent.length > MAX_CONTENT_LENGTH) {
plainTextContent = plainTextContent.substring(0, 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}`; response += `URL: ${url}`;