Skip to content

Commit

Permalink
chore: support auto generate env for default lib
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed May 3, 2024
1 parent acca052 commit cfb2d35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@ export const loadModule = async (variant?: string): Promise<Module> => {
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
}

0 comments on commit cfb2d35

Please sign in to comment.