Skip to content

Commit c66fe6f

Browse files
committed
fix: allow unicode in yaml
(cherry picked from commit 0ea358155b9864cb15b12096dcda8c237b2c90c1)
1 parent 8879837 commit c66fe6f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

agentkit/toolkit/config/config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,13 @@ def _save_config(self):
297297
"""Save configuration file"""
298298
os.makedirs(self.config_path.parent, exist_ok=True)
299299
with open(self.config_path, "w", encoding="utf-8") as f:
300-
yaml.dump(self._data, f, default_flow_style=False, sort_keys=False)
300+
yaml.dump(
301+
self._data,
302+
f,
303+
default_flow_style=False,
304+
sort_keys=False,
305+
allow_unicode=True,
306+
)
301307

302308
def get_common_config(self) -> CommonConfig:
303309
"""Get common configuration"""

0 commit comments

Comments
 (0)