fixed the inconstistancy in english language responses

This commit is contained in:
Saifeddine ALOUI 2024-05-04 14:43:43 +02:00
parent 58e777f9ab
commit e267968a28

View File

@ -699,13 +699,6 @@ class LollmsApplication(LoLLMsCom):
negative_boost="" negative_boost=""
n_negative_boost = 0 n_negative_boost = 0
if self.config.current_language:
force_language="\n!@>important information: Answer the user in "+self.config.current_language+" and do not translate your answer to english\n"
n_force_language = len(self.model.tokenize(force_language))
else:
force_language=""
n_force_language = 0
if self.config.fun_mode: if self.config.fun_mode:
fun_mode="\n!@>important information: Fun mode activated. In this mode you must answer in a funny playful way. Do not be serious in your answers. Each answer needs to make the user laugh.\n" fun_mode="\n!@>important information: Fun mode activated. In this mode you must answer in a funny playful way. Do not be serious in your answers. Each answer needs to make the user laugh.\n"
n_fun_mode = len(self.model.tokenize(positive_boost)) n_fun_mode = len(self.model.tokenize(positive_boost))