dumb mistakes
This commit is contained in:
parent
604d15be2b
commit
bf3e13c212
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
import { RecursiveUrlLoader } from "@langchain/community/document_loaders/web/recursive_url";
|
import { RecursiveUrlLoader } from "@langchain/community/document_loaders/web/recursive_url";
|
||||||
import { compile } from "html-to-text";
|
import { compile } from "html-to-text";
|
||||||
|
|
||||||
import { writeFile, fs } from 'fs/promises';
|
import { writeFile, readFile } from 'fs/promises';
|
||||||
|
|
||||||
import { exec } from 'child_process';
|
import { exec } from 'child_process';
|
||||||
import { promisify } from 'util';
|
import { promisify } from 'util';
|
||||||
|
@ -186,7 +186,7 @@ let userAGIInput = `
|
||||||
async function generateModelfile(c) {
|
async function generateModelfile(c) {
|
||||||
let ags_modelfile = ""
|
let ags_modelfile = ""
|
||||||
try {
|
try {
|
||||||
const ags_modelfile = await fs.readFile(`${systemSavePath}`, { encoding: 'utf8' });
|
const ags_modelfile = await readFile(`${systemSavePath}`, { encoding: 'utf8' });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
ags_modelfile = ags_template_part1;
|
ags_modelfile = ags_template_part1;
|
||||||
}
|
}
|
||||||
|
@ -258,4 +258,4 @@ async function talkLoop() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let [learningRound, talkLoopResults] = Promise.allSettled([learningLoop(), talkLoop()])
|
Promise.allSettled([learningLoop(), talkLoop()])
|
||||||
|
|
Loading…
Reference in a new issue