summaryrefslogtreecommitdiff
path: root/examples/lookup/lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lookup/lookup.cpp')
-rw-r--r--examples/lookup/lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/lookup/lookup.cpp b/examples/lookup/lookup.cpp
index 65ed408a..9526e898 100644
--- a/examples/lookup/lookup.cpp
+++ b/examples/lookup/lookup.cpp
@@ -141,7 +141,7 @@ int main(int argc, char ** argv){
printf("%s", token_str.c_str());
}
- if (id == llama_token_eos(model)) {
+ if (llama_token_is_eog(model, id)) {
has_eos = true;
}