Skip to content

Commit

Permalink
Add missing struct annotation (#483)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
Doomsdayrs authored Mar 25, 2023
1 parent 6f1ee4b commit 36d0753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 36d0753

Please sign in to comment.