AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
this changes it so the file from config is used, rather than a hardcoded name that might not exist (#3189)
Peter Petermann6fc6ea69d2ac
diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.pyindex e47d8ef75c..c226f37955 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"]