Skip to content

Commit 6dd0d56

Browse files
committed
fix: use prebuilt binaries by default
1 parent c0e68f6 commit 6dd0d56

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

llama/usedBin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"use": "localBuildFromSource"
2+
"use": "prebuiltBinaries"
33
}

src/cli/commands/ClearCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ export async function ClearLlamaCppBuildCommand({type}: ClearCommand) {
4646
});
4747
}
4848

49-
await setUsedBinFlag("prebuildBinaries");
49+
await setUsedBinFlag("prebuiltBinaries");
5050
}

src/utils/compileLLamaCpp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function compileLlamaCpp({arch = process.arch, nodeTarget = process
4646
}
4747
} catch (err) {
4848
if (setUsedBingFlag)
49-
await setUsedBinFlag("prebuildBinaries");
49+
await setUsedBinFlag("prebuiltBinaries");
5050

5151
throw err;
5252
}

src/utils/getBin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function getPrebuildBinPath(): Promise<string | null> {
4242
case "darwin":
4343
return resolvePath("mac", process.arch, supportedVersions);
4444
}
45-
45+
4646
return null;
4747
}
4848

@@ -52,7 +52,7 @@ export async function getPrebuildBinPath(): Promise<string | null> {
5252
export async function loadBin(): Promise<LlamaCppNodeModule> {
5353
const usedBingFlag = await getUsedBinFlag();
5454

55-
if (usedBingFlag === "prebuildBinaries") {
55+
if (usedBingFlag === "prebuiltBinaries") {
5656
const prebuildBinPath = await getPrebuildBinPath();
5757

5858
if (prebuildBinPath == null) {

src/utils/usedBinFlag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from "fs-extra";
22
import {usedBinFlagJsonPath} from "../config.js";
33

44
type UsedBinFlagFile = {
5-
use: "prebuildBinaries" | "localBuildFromSource"
5+
use: "prebuiltBinaries" | "localBuildFromSource"
66
};
77

88
export async function getUsedBinFlag() {

0 commit comments

Comments
 (0)