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 @@ -523,7 +523,7 @@ impl LlamaModel {
523
523
let message_length = chat. iter ( ) . fold ( 0 , |acc, c| {
524
524
acc + c. role . to_bytes ( ) . len ( ) + c. content . to_bytes ( ) . len ( )
525
525
} ) ;
526
- let mut buff: Vec < i8 > = vec ! [ 0_i8 ; message_length * 4 ] ;
526
+ let mut buff = vec ! [ 0 ; message_length * 4 ] ;
527
527
528
528
// Build our llama_cpp_sys_2 chat messages
529
529
let chat: Vec < llama_cpp_sys_2:: llama_chat_message > = chat
@@ -548,7 +548,7 @@ impl LlamaModel {
548
548
chat. as_ptr ( ) ,
549
549
chat. len ( ) ,
550
550
add_ass,
551
- buff. as_mut_ptr ( ) . cast :: < std :: os :: raw :: c_char > ( ) ,
551
+ buff. as_mut_ptr ( ) ,
552
552
buff. len ( ) as i32 ,
553
553
) ;
554
554
// A buffer twice the size should be sufficient for all models, if this is not the case for a new model, we can increase it
You can’t perform that action at this time.
0 commit comments