Merge pull request #1242 from morsoli/master

Resolving Unicode encoding issues
This commit is contained in:
Richard Beales
2023-04-14 07:23:05 +01:00
committed by GitHub

View File

@@ -70,8 +70,8 @@ class AIConfig:
"""
config = {"ai_name": self.ai_name, "ai_role": self.ai_role, "ai_goals": self.ai_goals}
with open(config_file, "w") as file:
yaml.dump(config, file)
with open(config_file, "w", encoding='utf-8') as file:
yaml.dump(config, file, allow_unicode=True)
def construct_full_prompt(self) -> str:
"""