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.
fix(global): fix wrong calls
Fabrice Hong9f8b9db7bb09
diff --git a/scripts/main.py b/scripts/main.pyindex 4160fe8a4f..d7b94085c6 100644--- a/scripts/main.py+++ b/scripts/main.py@@ -33,7 +33,7 @@ def check_openai_api_key():def attempt_to_fix_json_by_finding_outermost_brackets(json_string):if cfg.speak_mode and cfg.debug_mode:speak.say_text("I have received an invalid JSON response from the OpenAI API. Trying to fix it now.")- logger.debug(title="Attempting to fix JSON by finding outermost brackets\n", title_color=Fore.RED)+ logger.typewriter_log("Attempting to fix JSON by finding outermost brackets\n")try:# Use regex to search for JSON objects@@ -44,7 +44,7 @@ def attempt_to_fix_json_by_finding_outermost_brackets(json_string):if json_match:# Extract the valid JSON object from the stringjson_string = json_match.group(0)- logger.debug(title="Apparently json was fixed.", title_color=Fore.GREEN)+ logger.typewriter_log(title="Apparently json was fixed.", title_color=Fore.GREEN)if cfg.speak_mode and cfg.debug_mode:speak.say_text("Apparently json was fixed.")else: