From 8ec04d2fcbabecb22d27c25d75b34a4d5e22fe50 Mon Sep 17 00:00:00 2001 From: Sneed Group Date: Wed, 2 Oct 2024 16:49:37 -0500 Subject: [PATCH] bruh --- index.mjs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/index.mjs b/index.mjs index 0456d5b..9571844 100644 --- a/index.mjs +++ b/index.mjs @@ -39,18 +39,18 @@ async function runPublishCommands() { try { // Execute the 'ollama create' command const createCommand = `ollama create ${modelID} -f ${modelfilePath}`; - console.log(`Running command: ${createCommand}`); + //console.log(`Running command: ${createCommand}`); const { stdout: createStdout, stderr: createStderr } = await execPromise(createCommand); - console.log('Create Command Output:', createStdout); + //console.log('Create Command Output:', createStdout); if (createStderr) { console.error('Create Command Error:', createStderr); } // Execute the 'ollama push' command const pushCommand = `ollama push ${modelID}`; - console.log(`Running command: ${pushCommand}`); + //console.log(`Running command: ${pushCommand}`); const { stdout: pushStdout, stderr: pushStderr } = await execPromise(pushCommand); - console.log('Push Command Output:', pushStdout); + //console.log('Push Command Output:', pushStdout); if (pushStderr) { console.error('Push Command Error:', pushStderr); } @@ -166,7 +166,7 @@ async function siteCrawler(hostname) { webContents.forEach(content => contexts.push(content)); return webContents; } catch (error) { - console.error(`Failed to crawl site ${hostname}:`, error); + //console.error(`Failed to crawl site ${hostname}:`, error); return []; } } @@ -196,9 +196,7 @@ async function generateModelfile(c) { } ags_modelfile += createUserContextPart(userAGIInput); await writeFile(systemSavePath, ags_modelfile) - .then(() => { - console.log('File written successfully!'); - }) + .then(() => {}) .catch(err => { console.error('Error writing file:', err); }); @@ -217,7 +215,6 @@ async function learner() { await contextAdd(["68k.news"]); await contextAdd(["old.reddit.com"]); const modelfile = await generateModelfile(contexts); - console.log(modelfile); await runPublishCommands(); return 0; } catch (error) {