From 566b32f08d3b81d9e3803d692595039293e716ef Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 2 May 2024 16:42:48 +0200 Subject: [PATCH] llama : rename ctx to user_data in progress_callback This commit renames the `ctx` parameter to `user_data` in the `llama_progress_callback` typedef. The motivation for this is that other callbacks use `user_data` or `data`, and using `ctx` in this case might be confusing as it could be confused with `llama_context`. Signed-off-by: Daniel Bevenius --- llama.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.h b/llama.h index 059d78f11..d1e0ecf9a 100644 --- a/llama.h +++ b/llama.h @@ -171,7 +171,7 @@ extern "C" { bool sorted; } llama_token_data_array; - typedef bool (*llama_progress_callback)(float progress, void *ctx); + typedef bool (*llama_progress_callback)(float progress, void *user_data); // Input data for llama_decode // A llama_batch object can contain input about one or many sequences