summaryrefslogtreecommitdiff
path: root/examples/llama.android/llama/src/main/cpp/llama-android.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/llama.android/llama/src/main/cpp/llama-android.cpp')
-rw-r--r--examples/llama.android/llama/src/main/cpp/llama-android.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/llama.android/llama/src/main/cpp/llama-android.cpp b/examples/llama.android/llama/src/main/cpp/llama-android.cpp
index 874158ef..2aafe231 100644
--- a/examples/llama.android/llama/src/main/cpp/llama-android.cpp
+++ b/examples/llama.android/llama/src/main/cpp/llama-android.cpp
@@ -5,7 +5,7 @@
#include <string>
#include <unistd.h>
#include "llama.h"
-#include "common/common.h"
+#include "common.h"
// Write C++ code here.
//
@@ -409,7 +409,7 @@ Java_android_llama_cpp_LLamaAndroid_completion_1loop(
const auto n_cur = env->CallIntMethod(intvar_ncur, la_int_var_value);
if (llama_token_is_eog(model, new_token_id) || n_cur == n_len) {
- return env->NewStringUTF("");
+ return nullptr;
}
auto new_token_chars = llama_token_to_piece(context, new_token_id);