Skip to content

Commit 427c87c

Browse files
Breaking changes in llama.cpp API
ggml-org/llama.cpp#11213
1 parent 6ce1863 commit 427c87c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/cpp/hips.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extern "C" JNIEXPORT jlong JNICALL Java_org_vonderheidt_hips_utils_LlamaCpp_load
102102
llama_context_params params = llama_context_default_params();
103103

104104
// Create context with the LLM (=> context knows its state) and save pointer to it
105-
llama_context* cppCtx = llama_new_context_with_model(cppModel, params);
105+
llama_context* cppCtx = llama_init_from_model(cppModel, params);
106106

107107
// Log success or error message
108108
if (cppCtx != nullptr) {

0 commit comments

Comments
 (0)