Skip to content

Commit

Permalink
llama.h : add missing struct keyword for C compat in callback type (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
igarnier authored Aug 28, 2023
1 parent f55538c commit dd0dc36
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 @@ -496,7 +496,7 @@ extern "C" {
// Type of pointer to the beam_search_callback function.
// void* callback_data is any custom data passed to llama_beam_search, that is subsequently
// passed back to beam_search_callback. This avoids having to use global variables in the callback.
typedef void (*llama_beam_search_callback_fn_t)(void * callback_data, llama_beams_state);
typedef void (*llama_beam_search_callback_fn_t)(void * callback_data, struct llama_beams_state);

/// @details Deterministically returns entire sentence constructed by a beam search.
/// @param ctx Pointer to the llama_context.
Expand Down

0 comments on commit dd0dc36

Please sign in to comment.