Merge pull request #511 from viniciusarruda/patch-1

Update llama_cpp.py - Fix c_char_p to Array[c_char_p] and c_float to …
This commit is contained in:
Andrei 2023-07-20 17:40:39 -04:00 committed by GitHub
commit a9cb645495
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -748,7 +748,7 @@ def llama_get_vocab(
return _lib.llama_get_vocab(ctx, strings, scores, capacity)
_lib.llama_get_vocab.argtypes = [llama_context_p, c_char_p, c_float, c_int]
_lib.llama_get_vocab.argtypes = [llama_context_p, Array[c_char_p], Array[c_float], c_int]
_lib.llama_get_vocab.restype = c_int