Final changes FOR SURE
This commit is contained in:
parent
71ab0488f5
commit
54153bc991
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue