From 6fc6ea69d2ac88efa5f26a8fccf69b37dc012479 Mon Sep 17 00:00:00 2001 From: Peter Petermann Date: Tue, 25 Apr 2023 08:56:59 +0200 Subject: [PATCH] this changes it so the file from config is used, rather than a hardcoded name that might not exist (#3189) --- autogpt/agent/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py index e47d8ef7..c226f379 100644 --- a/autogpt/agent/agent.py +++ b/autogpt/agent/agent.py @@ -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"]