mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
Update personality.py
This commit is contained in:
parent
b2c9f73a3d
commit
22299b5c7f
@ -1208,8 +1208,10 @@ Use this structure:
|
||||
|
||||
self.set_config(config, True)
|
||||
|
||||
if config["language"]:
|
||||
default_language = config["language"].lower().strip().split()[0]
|
||||
lang = config.get("language","english")
|
||||
|
||||
if lang:
|
||||
default_language = lang.lower().strip().split()[0]
|
||||
else:
|
||||
default_language = 'english'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user