From e2d3dacd5d97f764cc1604261f46d30d359a2577 Mon Sep 17 00:00:00 2001 From: Sneed Group Date: Wed, 2 Oct 2024 15:55:09 -0500 Subject: [PATCH] finish up.... --- index.mjs | 7 ++++--- start.sh | 0 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 start.sh diff --git a/index.mjs b/index.mjs index bd3a36c..12c7a07 100644 --- a/index.mjs +++ b/index.mjs @@ -35,7 +35,7 @@ function ask(q) { } // Function to run the publishing commands -async function runPublishCommands(sys) { +async function runPublishCommands() { try { // Execute the 'ollama create' command const createCommand = `ollama create ${modelID} -f ${modelfilePath}`; @@ -137,11 +137,11 @@ ${c} function createUserContextPart(c) { return ` -***USER CHATS FOR EXTRA KNOWLEDGE BEGIN*** +**CHAT INTERACTION FOR EXTRA KNOWLEDGE BEGIN*** ${c} -***USER CHATS FOR EXTRA KNOWLEDGE END*** +***CHAT INTERACTION FOR EXTRA KNOWLEDGE END*** ` } @@ -249,6 +249,7 @@ async function talkLoop() { userAGIInput += `AI: ${a.message.content}`; console.log(`${a.message.content}`) generateModelfile(contexts) + runPublishCommands() } } diff --git a/start.sh b/start.sh old mode 100644 new mode 100755