You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2023. It is now read-only.
Pass an extra argument in callbacks, like llmodel_prompt_callback, llmodel_response_callback, etc. It would be really handy to pass void* parameter to callbacks, that can be filled by user custom data.
For example, because I use static callbacks in C# IL2CPP, I need to track called object somehow. I can use that extra optional parameter in callback to return from static context to object context. Here is example from whisper.cpp implementation.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Pass an extra argument in callbacks, like
llmodel_prompt_callback
,llmodel_response_callback
, etc. It would be really handy to passvoid*
parameter to callbacks, that can be filled by user custom data.For example, because I use static callbacks in C# IL2CPP, I need to track called object somehow. I can use that extra optional parameter in callback to return from static context to object context. Here is example from whisper.cpp implementation.
The text was updated successfully, but these errors were encountered: