update/create maxDepthCount so that it hopefully wont run out of heapmem

This commit is contained in:
The Ghost of FOSS' Future 2024-09-16 08:27:46 -05:00 committed by GitHub
parent fe0fa62361
commit 864e2657dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ const execPromise = promisify(exec);
const modelfilePath = "I:rolling-agi-mf"
const maxDepthCount = 8
// Function to run the publishing commands
async function runPublishCommands() {
@ -124,7 +125,7 @@ async function siteCrawler(hostname) {
const loader = new RecursiveUrlLoader(crawled, {
extractor: compiledConvert,
maxDepth: 14,
maxDepth: maxDepthCount,
excludeDirs: ["https://search.sparksammy.com/", "https://search.sparksammy.com/search.php", "https://archive.org", "https://doubleclick.net", "https://paypal.com"],
});
const webContents = await loader.load();