Skip to content

Commit 36d0753

Browse files
authored
Add missing struct annotation (abetlen#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.
1 parent 6f1ee4b commit 36d0753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ extern "C" {
123123

124124
// TODO: improve the last_n_tokens interface ?
125125
LLAMA_API llama_token llama_sample_top_p_top_k(
126-
llama_context * ctx,
126+
struct llama_context * ctx,
127127
const llama_token * last_n_tokens_data,
128128
int last_n_tokens_size,
129129
int top_k,

0 commit comments

Comments
 (0)