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.
Remove deprecated function from bracket_termination.py
Merwane Hamadi5c6748429551
diff --git a/autogpt/json_fixes/bracket_termination.py b/autogpt/json_fixes/bracket_termination.pyindex 822eed4a54..731efeb1c0 100644--- a/autogpt/json_fixes/bracket_termination.py+++ b/autogpt/json_fixes/bracket_termination.py@@ -3,16 +3,20 @@ from __future__ import annotationsimport contextlibimport json+<<<<<<< HEADimport regexfrom colorama import Forefrom autogpt.logs import logger+=======+from typing import Optional+>>>>>>> 67f32105 (Remove deprecated function from bracket_termination.py)from autogpt.config import Config-from autogpt.speech import say_textCFG = Config()+<<<<<<< HEADdef attempt_to_fix_json_by_finding_outermost_brackets(json_string: str):if CFG.speak_mode and CFG.debug_mode:say_text(@@ -48,6 +52,9 @@ def attempt_to_fix_json_by_finding_outermost_brackets(json_string: str):def balance_braces(json_string: str) -> str | None:+=======+def balance_braces(json_string: str) -> Optional[str]:+>>>>>>> 67f32105 (Remove deprecated function from bracket_termination.py)"""Balance the braces in a JSON string.