From cfb2d356a368547e5ea3c1347d31d308e1113291 Mon Sep 17 00:00:00 2001 From: Hans Date: Fri, 3 May 2024 21:17:37 +0800 Subject: [PATCH] chore: support auto generate env for default lib --- lib/binding.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/binding.ts b/lib/binding.ts index bc1ff4f..b71395c 100644 --- a/lib/binding.ts +++ b/lib/binding.ts @@ -70,5 +70,6 @@ export const loadModule = async (variant?: string): Promise => { return await import(`../bin/${process.platform}-${variant}/${process.arch}/llama-node.node`) as Module } } catch {} // ignore errors and try the common path + setupEnv() return await import(`../bin/${process.platform}/${process.arch}/llama-node.node`) as Module } \ No newline at end of file