@@ -236,7 +236,7 @@ mistralai/Mistral-7B-v0.1
236236let md5_digest = md5:: compute ( to_hash. as_bytes ( ) ) ;
237237let fingerprint = uuid:: Uuid :: from_slice ( & md5_digest. 0 ) ?;
238238
239- let mut args = serde_json:: json!( { "max_length " : max_tokens, "temperature" : temperature, "do_sample" : true , "num_return_sequences" : n} ) ;
239+ let mut args = serde_json:: json!( { "max_new_tokens " : max_tokens, "temperature" : temperature, "do_sample" : true , "num_return_sequences" : n} ) ;
240240if let Some ( t) = chat_template
241241. or_else ( ||try_get_model_chat_template ( & model_name) . map ( |s| s. to_string ( ) ) )
242242{
@@ -322,7 +322,7 @@ mistralai/Mistral-7B-v0.1
322322let md5_digest = md5:: compute ( to_hash. as_bytes ( ) ) ;
323323let fingerprint = uuid:: Uuid :: from_slice ( & md5_digest. 0 ) ?;
324324
325- let mut args = serde_json:: json!( { "max_length " : max_tokens, "temperature" : temperature, "do_sample" : true , "num_return_sequences" : n} ) ;
325+ let mut args = serde_json:: json!( { "max_new_tokens " : max_tokens, "temperature" : temperature, "do_sample" : true , "num_return_sequences" : n} ) ;
326326if let Some ( t) = chat_template
327327. or_else ( ||try_get_model_chat_template ( & model_name) . map ( |s| s. to_string ( ) ) )
328328{