diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2024-05-03 15:24:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 15:24:30 +0200 |
commit | 433def286e98751bf17db75dce53847d075c0be5 (patch) | |
tree | b206c080d6221ad144da7f9095fe69fa896abff9 /llama.h | |
parent | 60325fa56f61c228464c9f065db3aa6a61f2156e (diff) |
llama : rename ctx to user_data in progress_callback (#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 <daniel.bevenius@gmail.com>
Diffstat (limited to 'llama.h')
-rw-r--r-- | llama.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |