Final changes FOR SURE

This commit is contained in:
The Ghost of FOSS' Past 2024-10-02 17:36:03 -05:00
parent 71ab0488f5
commit 54153bc991

View file

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