diff options
author | Doomsdayrs <38189170+Doomsdayrs@users.noreply.github.com> | 2023-03-25 01:21:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 07:21:24 +0200 |
commit | 36d07532ef7ccf0bdc12e050472f359a6794957f (patch) | |
tree | 3cb80bea877271666d12dd8fd283386e711db9e9 | |
parent | 6f1ee4b640912211a4b07965c585d327e32e734d (diff) |
Add missing struct annotation (#483)
`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.
-rw-r--r-- | llama.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |