File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2528,15 +2528,15 @@ def llama_print_system_info() -> bytes:
2528
2528
# // If this is not called, or NULL is supplied, everything is output on stderr.
2529
2529
# LLAMA_API void llama_log_set(ggml_log_callback log_callback, void * user_data);
2530
2530
def llama_log_set (
2531
- log_callback : "ctypes._FuncPointer" , user_data : c_void_p # type: ignore
2531
+ log_callback : Union [ "ctypes._FuncPointer" , c_void_p ] , user_data : c_void_p # type: ignore
2532
2532
):
2533
2533
"""Set callback for all future logging events.
2534
2534
2535
2535
If this is not called, or NULL is supplied, everything is output on stderr."""
2536
2536
return _lib .llama_log_set (log_callback , user_data )
2537
2537
2538
2538
2539
- _lib .llama_log_set .argtypes = [llama_log_callback , c_void_p ]
2539
+ _lib .llama_log_set .argtypes = [ctypes . c_void_p , c_void_p ]
2540
2540
_lib .llama_log_set .restype = None
2541
2541
2542
2542
You can’t perform that action at this time.
0 commit comments