this changes it so the file from config is used, rather than a hardcoded name that might not exist (#3189)

This commit is contained in:
Peter Petermann
2023-04-25 08:56:59 +02:00
committed by GitHub
parent 93bbd13a34
commit 6fc6ea69d2

View File

@@ -280,7 +280,7 @@ class Agent:
str: A feedback response generated using the provided thoughts dictionary.
"""
with open("ai_settings.yaml", "r") as yaml_file:
with open(Config().ai_settings_file, "r") as yaml_file:
parsed_yaml = yaml.safe_load(yaml_file)
ai_role = parsed_yaml["ai_role"]