wow i forgot to loop it.
This commit is contained in:
parent
bf3e13c212
commit
f3977438cb
1 changed files with 12 additions and 10 deletions
22
index.mjs
22
index.mjs
|
@ -244,16 +244,18 @@ async function learningLoop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function talkLoop() {
|
async function talkLoop() {
|
||||||
let q = await ask(`To ${modelID}: `)
|
while (true) {
|
||||||
userAGIInput += `USER: ${q}`;
|
let q = await ask(`To ${modelID}: `)
|
||||||
let a = await ollama.chat({
|
userAGIInput += `USER: ${q}`;
|
||||||
model: `${modelID}`,
|
let a = await ollama.chat({
|
||||||
messages: [{ role: 'user', content: `${q}` }],
|
model: `${modelID}`,
|
||||||
})
|
messages: [{ role: 'user', content: `${q}` }],
|
||||||
userAGIInput += `AI: ${a}`;
|
})
|
||||||
console.log(`${a}`)
|
userAGIInput += `AI: ${a}`;
|
||||||
generateModelfile(contexts)
|
console.log(`${a}`)
|
||||||
return [q, a]
|
generateModelfile(contexts)
|
||||||
|
return [q, a]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue