update prompt for scraped data

This commit is contained in:
Raven 2024-08-03 19:01:03 -04:00
parent 180efb0268
commit 359ee73fb3

View File

@ -502,7 +502,7 @@ async function handleSearchPlugin(searchQuery, ip, conversationHistory) {
const lastMessageIndex = conversationHistory[ip].length - 1;
if (lastMessageIndex >= 0) {
conversationHistory[ip][lastMessageIndex].content += "\nYou scraped these results, review them provide links: " + searchResponse;
conversationHistory[ip][lastMessageIndex].content += "\nYou scraped these results, review them, Provide the URLs scraped in your review: \n" + searchResponse;
console.log(`${getTimestamp()} [INFO] Processed search query: ${searchQuery}, response: ${searchResponse}`);
} else {
console.error(`${getTimestamp()} [ERROR] Conversation history is unexpectedly empty for: ${ip}`);