From 8347bede585e3c567049cd9aa9b93c73fc0d2631 Mon Sep 17 00:00:00 2001 From: Doomsdayrs <38189170+Doomsdayrs@users.noreply.github.com> Date: Fri, 24 Mar 2023 20:25:50 -0400 Subject: [PATCH] Add missing struct annotation `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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.h b/llama.h index 9943d96ba..57123dbcc 100644 --- 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,