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.
use regex instead of re
Wladastic4ad1fc14a486
diff --git a/scripts/main.py b/scripts/main.pyindex df07cb2640..6a4723d4e0 100644--- a/scripts/main.py+++ b/scripts/main.py@@ -64,8 +64,8 @@ def attempt_to_fix_json_by_finding_outermost_brackets(json_string):try:# Use regex to search for JSON objects- import re- json_pattern = re.compile(r"\{(?:[^{}]|(?R))*\}")+ import regex+ json_pattern = regex.compile(r"\{(?:[^{}]|(?R))*\}")json_match = json_pattern.search(json_string)if json_match: