mirror of
https://github.com/cocktailpeanut/dalai
synced 2025-02-14 20:14:29 +01:00
Merge branch 'main' of https://github.com/cocktailpeanut/dalai
This commit is contained in:
commit
dc6270a2c7
3
index.js
3
index.js
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user