Believe in AI democratization. llama for nodejs backed by llama-rs, llama.cpp and rwkv.cpp, work locally on your laptop CPU. support llama/alpaca/gpt4all/vicuna/rwkv model.
I was using electron with vite-typescript build system, but on main process of electron keep getting below error:
✔ [plugin-vite] Compiling main process code [0.3s]
[commonjs--resolver] Unexpected character '�' (Note that you need plugins to import files that are not JavaScript)
file: /Users/kundb/projects/oscar/node_modules/@llama-node/llama-cpp/index.js:1:0
1: ����
���__TEX__text...
^
2: �}
�
__stub_helper__TEXT$�
P
3: $�
�__gcc_except_tab__TEXTt�
✔ [plugin-vite] Launching dev servers for renderer process code [0.5s]
✔ [plugin-vite] Compiling main process code [0.3s]
Do I need to use any different vite plugin to load llama-node?
I was using electron with vite-typescript build system, but on main process of electron keep getting below error:
Do I need to use any different vite plugin to load llama-node?