mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 06:54:22 +01:00
fix read config file encoding that broke Chinese
This commit is contained in:
@@ -46,7 +46,7 @@ class AIConfig:
|
||||
"""
|
||||
|
||||
try:
|
||||
with open(config_file) as file:
|
||||
with open(config_file, encoding='utf-8') as file:
|
||||
config_params = yaml.load(file, Loader=yaml.FullLoader)
|
||||
except FileNotFoundError:
|
||||
config_params = {}
|
||||
|
||||
Reference in New Issue
Block a user