@@ -385,6 +391,11 @@ class SakuraTranslator(BaseTranslator):
'timeout':999,
'max tokens':1024,
'repeat detect threshold':20,
'force apply dict':{
'value':False,
'description':'Force apply the dictionary regardless of whether the terms appear in the original text \n DO NOT CHECK THIS IF YOU ARE NOT SURE WHAT IT MEANS',
'type':'checkbox',
},
}
_CHAT_SYSTEM_TEMPLATE_009=(
@@ -435,6 +446,10 @@ class SakuraTranslator(BaseTranslator):
defdict_path(self)->str:
returnself.params['dict path']
@property
defforce_apply_dict(self)->bool:
returnself.params['force apply dict']['value']
def_setup_translator(self):
self.lang_map['简体中文']='Simplified Chinese'
self.lang_map['日本語']='Japanese'
@@ -552,7 +567,7 @@ class SakuraTranslator(BaseTranslator):