Evaluated code should not be JSON.

This commit is contained in:
Toran Bruce Richards
2023-04-03 11:25:43 +01:00
parent 1e73ee2958
commit 5a669d96eb

View File

@@ -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