Explorar o código

Added `enum` to `llama_token_get_type` return type (#2774)

Marcus Dunn %!s(int64=2) %!d(string=hai) anos
pai
achega
2e5f70a25f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      llama.h

+ 1 - 1
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