Skip to content

Commit

Permalink
Merge pull request #1242 from morsoli/master
Browse files Browse the repository at this point in the history
Resolving Unicode encoding issues
  • Loading branch information
richbeales authored Apr 14, 2023
2 parents d79184b + 5e6d0b6 commit 2c279eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ai_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def save(self, config_file: str=SAVE_FILE) -> None:
"""

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:
"""
Expand Down

0 comments on commit 2c279eb

Please sign in to comment.