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.

Evaluated code should not be JSON.

Toran Bruce Richards5a669d96ebd5
diff --git a/scripts/ai_functions.py b/scripts/ai_functions.py
index 0d27132dfe..05aa93a2da 100644
--- a/scripts/ai_functions.py
+++ b/scripts/ai_functions.py
@@ -13,7 +13,8 @@ def evaluate_code(code: str) -> List[str]:
description_string = """Analyzes the given code and returns a list of suggestions for improvements."""
result_string = call_ai_function(function_string, args, description_string)
- return fix_and_parse_json.loads(result_string)
+
+ return result_string
# Improving code