mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
enhanced encoding
This commit is contained in:
parent
7544c3a454
commit
6378bcc650
@ -122,8 +122,6 @@ Participating personalities:
|
||||
def stop_log(self):
|
||||
self.is_logging = False
|
||||
|
||||
|
||||
|
||||
def reset_context(self):
|
||||
if self.personality.include_welcome_message_in_disucssion:
|
||||
full_discussion = (
|
||||
|
@ -180,12 +180,12 @@ Date: {{date}}
|
||||
if not config_file.exists():
|
||||
raise ValueError(f"The provided folder {package_path} does not exist.")
|
||||
|
||||
with open(config_file, "r") as f:
|
||||
with open(config_file, "r", encoding='utf-8') as f:
|
||||
config = yaml.safe_load(f)
|
||||
|
||||
secret_file = package_path / "secret.yaml"
|
||||
if secret_file.exists():
|
||||
with open(secret_file, "r") as f:
|
||||
with open(secret_file, "r", encoding='utf-8') as f:
|
||||
self._secret_cfg = yaml.safe_load(f)
|
||||
else:
|
||||
self._secret_cfg = None
|
||||
|
Loading…
Reference in New Issue
Block a user