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.
AutoGPT/v2: Disable OpenAI log spam
Reinier van der Leerbbb526e6f831
diff --git a/autogpts/autogpt/autogpt/core/runner/client_lib/logging.py b/autogpts/autogpt/autogpt/core/runner/client_lib/logging.pyindex d4ffeffe8a..39364bfe59 100644--- a/autogpts/autogpt/autogpt/core/runner/client_lib/logging.py+++ b/autogpts/autogpt/autogpt/core/runner/client_lib/logging.py@@ -2,6 +2,7 @@ import loggingimport sysfrom colorama import Fore, Style+from openai.util import logger as openai_loggerSIMPLE_LOG_FORMAT = "%(asctime)s %(levelname)s %(message)s"DEBUG_LOG_FORMAT = (@@ -22,6 +23,9 @@ def configure_root_logger():logging.basicConfig(level=logging.DEBUG, handlers=[stdout, stderr])+ # Disable debug logging from OpenAI library+ openai_logger.setLevel(logging.INFO)+def get_client_logger():# Configure logging before we do anything else.