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:
25282528# // If this is not called, or NULL is supplied, everything is output on stderr.
25292529# LLAMA_API void llama_log_set(ggml_log_callback log_callback, void * user_data);
25302530def 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
25322532):
25332533 """Set callback for all future logging events.
25342534
25352535 If this is not called, or NULL is supplied, everything is output on stderr."""
25362536 return _lib .llama_log_set (log_callback , user_data )
25372537
25382538
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 ]
25402540_lib .llama_log_set .restype = None
25412541
25422542
You can’t perform that action at this time.
0 commit comments