We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24404ef commit 6f19b8cCopy full SHA for 6f19b8c
examples/llama.android/llama/src/main/cpp/llama-android.cpp
@@ -409,7 +409,7 @@ Java_android_llama_cpp_LLamaAndroid_completion_1loop(
409
410
const auto n_cur = env->CallIntMethod(intvar_ncur, la_int_var_value);
411
if (llama_token_is_eog(model, new_token_id) || n_cur == n_len) {
412
- return env->NewStringUTF("");
+ return nullptr;
413
}
414
415
auto new_token_chars = llama_token_to_piece(context, new_token_id);
0 commit comments