dumb mistakes

This commit is contained in:
The Ghost of FOSS' Past 2024-10-02 15:19:27 -05:00
parent 604d15be2b
commit bf3e13c212

View file

@ -1,7 +1,7 @@
import { RecursiveUrlLoader } from "@langchain/community/document_loaders/web/recursive_url";
import { compile } from "html-to-text";
import { writeFile, fs } from 'fs/promises';
import { writeFile, readFile } from 'fs/promises';
import { exec } from 'child_process';
import { promisify } from 'util';
@ -186,7 +186,7 @@ let userAGIInput = `
async function generateModelfile(c) {
let ags_modelfile = ""
try {
const ags_modelfile = await fs.readFile(`${systemSavePath}`, { encoding: 'utf8' });
const ags_modelfile = await readFile(`${systemSavePath}`, { encoding: 'utf8' });
} catch (err) {
ags_modelfile = ags_template_part1;
}
@ -258,4 +258,4 @@ async function talkLoop() {
let [learningRound, talkLoopResults] = Promise.allSettled([learningLoop(), talkLoop()])
Promise.allSettled([learningLoop(), talkLoop()])