summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorigarnier <igarnier@protonmail.com>2023-08-28 10:19:59 +0200
committerGitHub <noreply@github.com>2023-08-28 11:19:59 +0300
commitdd0dc366dab10e8df28d3924e7f313b5c695e908 (patch)
treeb99c649a3798f25a0c87d03c3da70a88b34451ac
parentf55538c3ccba9b926846ef862fa830cea08c433e (diff)
llama.h : add missing struct keyword for C compat in callback type (#2847)
-rw-r--r--llama.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.h b/llama.h
index b084fe23..7bb681d6 100644
--- a/llama.h
+++ b/llama.h
@@ -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.