1
mirror of https://github.com/cocktailpeanut/dalai synced 2024-11-20 23:07:32 +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}`)
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) {
await this.exec(`${main_bin_path} ${chunks.join(" ")}`, this.cores[Core].home, cb)
} else {
@ -448,7 +448,6 @@ class Dalai {
}
});
ptyProcess.onExit((res) => {
console.log("# EXIT", res)
if (res.exitCode === 0) {
// successful
resolve(true)