diff --git a/lollms/personality.py b/lollms/personality.py index 8baefc4..c69167a 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -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'