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.
Settings were being saved and loaded in the wrong directory
Fábio Machado de Oliveira9328c8f7b5b9
diff --git a/scripts/ai_config.py b/scripts/ai_config.pyindex 2f43274863..8cfa183a9b 100644--- a/scripts/ai_config.py+++ b/scripts/ai_config.py@@ -1,6 +1,6 @@import yamlimport data-+import osclass AIConfig:def __init__(self, ai_name="", ai_role="", ai_goals=[]):@@ -9,7 +9,7 @@ class AIConfig:self.ai_goals = ai_goals# Soon this will go in a folder where it remembers more stuff about the run(s)- SAVE_FILE = "../ai_settings.yaml"+ SAVE_FILE = os.path.join(os.path.dirname(__file__), '..', 'ai_settings.yaml')@classmethoddef load(cls, config_file=SAVE_FILE):