Skip to content

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.

Merge branch 'master' into dev

Andres Caicedo8a29e71465be
diff --cc .gitignore
index 6eecde953f,6b8f00b511..fc20dfd299
--- a/.gitignore
+++ b/.gitignore
@@@ -8,3 -8,4 +8,4 @@@ scripts/auto_gpt_workspace/
*.mpeg
.env
last_run_ai_settings.yaml
-outputs/*
++outputs/*
diff --cc scripts/json_parser.py
index edd6730560,11ff9ed22e..5153f71b04
--- a/scripts/json_parser.py
+++ b/scripts/json_parser.py
@@@ -49,9 -48,7 +49,8 @@@ def fix_and_parse_json(json_str: str, t
else:
raise e
- # TODO: Make debug a global config var
def fix_json(json_str: str, schema: str, debug=False) -> str:
+ """Fix the given JSON string to make it parseable and fully complient with the provided schema."""
# Try to fix the JSON using gpt:
function_string = "def fix_json(json_str: str, schema:str=None) -> str:"
args = [json_str, schema]