1
mirror of https://github.com/cocktailpeanut/dalai synced 2025-02-14 20:14:29 +01:00
This commit is contained in:
cocktailpeanut 2023-03-20 00:41:55 -04:00
commit dc6270a2c7

View File

@ -191,7 +191,7 @@ class Dalai {
chunks.push(`-p ${prompt}`) chunks.push(`-p ${prompt}`)
const main_bin_path = platform === "win32" ? path.resolve(this.home, Core, "build", "Release", "llama") : path.resolve(this.home, Core, "main") const main_bin_path = platform === "win32" ? path.resolve(this.home, Core, "build", "Release", "main") : path.resolve(this.home, Core, "main")
if (req.full) { if (req.full) {
await this.exec(`${main_bin_path} ${chunks.join(" ")}`, this.cores[Core].home, cb) await this.exec(`${main_bin_path} ${chunks.join(" ")}`, this.cores[Core].home, cb)
} else { } else {
@ -448,7 +448,6 @@ class Dalai {
} }
}); });
ptyProcess.onExit((res) => { ptyProcess.onExit((res) => {
console.log("# EXIT", res)
if (res.exitCode === 0) { if (res.exitCode === 0) {
// successful // successful
resolve(true) resolve(true)