mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
Evaluated code should not be JSON.
This commit is contained in:
@@ -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."""
|
description_string = """Analyzes the given code and returns a list of suggestions for improvements."""
|
||||||
|
|
||||||
result_string = call_ai_function(function_string, args, description_string)
|
result_string = call_ai_function(function_string, args, description_string)
|
||||||
return fix_and_parse_json.loads(result_string)
|
|
||||||
|
return result_string
|
||||||
|
|
||||||
|
|
||||||
# Improving code
|
# Improving code
|
||||||
|
|||||||
Reference in New Issue
Block a user