wow i forgot to loop it.
This commit is contained in:
parent
bf3e13c212
commit
f3977438cb
1 changed files with 12 additions and 10 deletions
|
@ -244,6 +244,7 @@ async function learningLoop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function talkLoop() {
|
async function talkLoop() {
|
||||||
|
while (true) {
|
||||||
let q = await ask(`To ${modelID}: `)
|
let q = await ask(`To ${modelID}: `)
|
||||||
userAGIInput += `USER: ${q}`;
|
userAGIInput += `USER: ${q}`;
|
||||||
let a = await ollama.chat({
|
let a = await ollama.chat({
|
||||||
|
@ -255,6 +256,7 @@ async function talkLoop() {
|
||||||
generateModelfile(contexts)
|
generateModelfile(contexts)
|
||||||
return [q, a]
|
return [q, a]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue