Skip to content

Commit dd01e76

Browse files
danbevnopperl
authored andcommitted
llama : rename ctx to user_data in progress_callback (ggml-org#7045)
* 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 <[email protected]>
1 parent ee8f5ac commit dd01e76

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
@@ -171,7 +171,7 @@ extern "C" {
171171
bool sorted;
172172
} llama_token_data_array;
173173

174-
typedef bool (*llama_progress_callback)(float progress, void *ctx);
174+
typedef bool (*llama_progress_callback)(float progress, void * user_data);
175175

176176
// Input data for llama_decode
177177
// A llama_batch object can contain input about one or many sequences

0 commit comments

Comments
 (0)