remove redunant code
This commit is contained in:
parent
9489068b8e
commit
5516e4c20b
@ -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}`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user