From 81c4c10389a814598ba4fd2dbaadb032550e514f Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Tue, 18 Apr 2023 23:44:46 -0400 Subject: [PATCH] Update type signature to allow for null pointer to be passed. --- examples/llama_cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/llama_cpp.py b/examples/llama_cpp.py index c2d1ace63..5e8a5c316 100644 --- a/examples/llama_cpp.py +++ b/examples/llama_cpp.py @@ -186,7 +186,7 @@ _lib.llama_model_quantize.restype = c_int # will be applied on top of the previous one # Returns 0 on success def llama_apply_lora_from_file( - ctx: llama_context_p, path_lora: bytes, path_base_model: bytes, n_threads: c_int + ctx: llama_context_p, path_lora: ctypes.c_char_p, path_base_model: ctypes.c_char_p, n_threads: c_int ) -> c_int: return _lib.llama_apply_lora_from_file(ctx, path_lora, path_base_model, n_threads)