Skip to content

Commit

Permalink
Evaluated code should not be JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
Torantulino committed Apr 3, 2023
1 parent 1e73ee2 commit 5a669d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ai_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a669d9

Please sign in to comment.