diff --git a/index.mjs b/index.mjs index 152fa97..ebbdea5 100644 --- a/index.mjs +++ b/index.mjs @@ -219,19 +219,21 @@ async function learningLoop() { async function talkLoop() { while (true) { - let q = await ask(`To ${modelID}: `); - userAGIInput += await ` + delay(256); + let q = ask(`To ${modelID}: `); + userAGIInput += ` USER: ${q}`; let a = await ollama.chat({ model: `${modelID}`, messages: [{ role: 'user', content: `${q}` }], }); - userAGIInput += await ` + userAGIInput += ` AI: ${a.message.content}`; console.log(`${a.message.content}`); await generateModelfile(contexts); await runPublishCommands(); + delay(1000); } }