remove redunant code

This commit is contained in:
Raven Scott 2023-05-05 18:32:46 +02:00
parent 18923b7909
commit e54826085d

View File

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