File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Original file line number Diff line number Diff line change @@ -1008,15 +1008,24 @@ def llama_token_to_str_bpe(
1008
1008
_lib .llama_token_to_str_bpe .restype = c_int
1009
1009
1010
1010
1011
- # LLAMA_API const char * llama_token_to_str_with_model(
1012
- # const struct llama_model * model,
1013
- # llama_token token);
1014
- def llama_token_to_str_with_model (model : llama_model_p , token : llama_token ) -> bytes :
1015
- return _lib .llama_token_to_str_with_model (model , token )
1011
+ # LLAMA_API int llama_token_to_str_with_model(
1012
+ # const struct llama_model * model,
1013
+ # llama_token token,
1014
+ # char * buf,
1015
+ # int length);
1016
+ def llama_token_to_str_with_model (
1017
+ model : llama_model_p , token : llama_token , buf : bytes , length : c_int
1018
+ ) -> int :
1019
+ return _lib .llama_token_to_str_with_model (model , token , buf , length )
1016
1020
1017
1021
1018
- _lib .llama_token_to_str_with_model .argtypes = [llama_model_p , llama_token ]
1019
- _lib .llama_token_to_str_with_model .restype = c_char_p
1022
+ _lib .llama_token_to_str_with_model .argtypes = [
1023
+ llama_model_p ,
1024
+ llama_token ,
1025
+ c_char_p ,
1026
+ c_int ,
1027
+ ]
1028
+ _lib .llama_token_to_str_with_model .restype = c_int
1020
1029
1021
1030
1022
1031
# //
You can’t perform that action at this time.
0 commit comments