summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Dunn <51931484+MarcusDunn@users.noreply.github.com>2023-08-24 14:49:30 -0700
committerGitHub <noreply@github.com>2023-08-24 23:49:30 +0200
commit2e5f70a25fc4576e9ed78603fe493eb7702c37a3 (patch)
tree7bd6386f8a7a121650bcf1d9d6edba16beed4f9c
parentd0f77b1353fc820d1ff1e6b87bc6bedde315938d (diff)
Added `enum` to `llama_token_get_type` return type (#2774)
-rw-r--r--llama.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.h b/llama.h
index 4e7638c0..2bcf94e0 100644
--- a/llama.h
+++ b/llama.h
@@ -348,7 +348,7 @@ extern "C" {
LLAMA_API float llama_token_get_score(const struct llama_context * ctx, llama_token token);
- LLAMA_API llama_token_type llama_token_get_type(const struct llama_context * ctx, llama_token token);
+ LLAMA_API enum llama_token_type llama_token_get_type(const struct llama_context * ctx, llama_token token);
// Special tokens
LLAMA_API llama_token llama_token_bos(const struct llama_context * ctx); // beginning-of-sentence