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 patch-2

Ikko Eltociear Ashiminebcf1606d8ac8
diff --cc scripts/json_parser.py
index f44cf4d335,07de530cab..e83cb15445
--- a/scripts/json_parser.py
+++ b/scripts/json_parser.py
@@@ -53,7 -77,11 +77,11 @@@ def fix_json(json_str: str, schema: str
# Try to fix the JSON using gpt:
function_string = "def fix_json(json_str: str, schema:str=None) -> str:"
args = [f"'''{json_str}'''", f"'''{schema}'''"]
- description_string = """Fixes the provided JSON string to make it parseable and fully complient with the provided schema.\n If an object or field specified in the schema isn't contained within the correct JSON, it is ommited.\n This function is brilliant at guessing when the format is incorrect."""
+ description_string = "Fixes the provided JSON string to make it parseable"\
+ " and fully complient with the provided schema.\n If an object or"\
- " field specifed in the schema isn't contained within the correct"\
++ " field specified in the schema isn't contained within the correct"\
+ " JSON, it is ommited.\n This function is brilliant at guessing"\
+ " when the format is incorrect."
# If it doesn't already start with a "`", add one:
if not json_str.startswith("`"):