Skip to content

Commit 7450aae

Browse files
authored
fix: adapt to llama.cpp breaking changes (#166)
1 parent 0addc88 commit 7450aae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama/addon.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class LLAMAModel : public Napi::ObjectWrap<LLAMAModel> {
3939
}
4040
}
4141

42-
llama_backend_init(false);
42+
llama_backend_init();
4343
model = llama_load_model_from_file(modelPath.c_str(), model_params);
4444

4545
if (model == NULL) {
@@ -436,7 +436,7 @@ Napi::Value LLAMAContext::Eval(const Napi::CallbackInfo& info) {
436436
Napi::Value systemInfo(const Napi::CallbackInfo& info) { return Napi::String::From(info.Env(), llama_print_system_info()); }
437437

438438
Napi::Object registerCallback(Napi::Env env, Napi::Object exports) {
439-
llama_backend_init(false);
439+
llama_backend_init();
440440
exports.DefineProperties({
441441
Napi::PropertyDescriptor::Function("systemInfo", systemInfo),
442442
});

0 commit comments

Comments
 (0)