Files
airllm-fork-nodejs/node_modules/node-llama-cpp/dist/bindings/utils/getCanUsePrebuiltBinaries.js
2026-02-05 15:27:49 +08:00

8 lines
557 B
JavaScript

import { builtinLlamaCppGitHubRepo, builtinLlamaCppRelease } from "../../config.js";
import { getClonedLlamaCppRepoReleaseInfo } from "./cloneLlamaCppRepo.js";
export async function getCanUsePrebuiltBinaries() {
const clonedLlamaCppRepoReleaseInfo = await getClonedLlamaCppRepoReleaseInfo();
return clonedLlamaCppRepoReleaseInfo == null || (clonedLlamaCppRepoReleaseInfo.tag === builtinLlamaCppRelease &&
clonedLlamaCppRepoReleaseInfo.llamaCppGithubRepo === builtinLlamaCppGitHubRepo);
}
//# sourceMappingURL=getCanUsePrebuiltBinaries.js.map