]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Add missing struct annotation (#483)
authorDoomsdayrs <redacted>
Sat, 25 Mar 2023 05:21:24 +0000 (01:21 -0400)
committerGitHub <redacted>
Sat, 25 Mar 2023 05:21:24 +0000 (07:21 +0200)
`llama_sample_top_p_top_k` was missing the struct annotation on line 126.

This causes a compiler issue when being parsed by the Kotlin C interop generator.

This commit fixes the above issue by adding the struct annotation.

llama.h

diff --git a/llama.h b/llama.h
index 9943d96ba53670fb42a3303fa9c1f67e590d244c..57123dbcc85eda86f903ed0fb5be79e6af2a4156 100644 (file)
--- a/llama.h
+++ b/llama.h
@@ -123,7 +123,7 @@ extern "C" {
 
     // TODO: improve the last_n_tokens interface ?
     LLAMA_API llama_token llama_sample_top_p_top_k(
-              llama_context * ctx,
+       struct llama_context * ctx,
           const llama_token * last_n_tokens_data,
                         int   last_n_tokens_size,
                         int   top_k,