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