Skip to content

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.

Reduce log spam

Reinier van der Leerb367c3d12597
diff --git a/autogpt/commands/decorators.py b/autogpt/commands/decorators.py
index 59b952da68..8e4aece509 100644
--- a/autogpt/commands/decorators.py
+++ b/autogpt/commands/decorators.py
@@ -31,15 +31,11 @@ def sanitize_path_arg(arg_name: str, make_relative: bool = False):
@functools.wraps(func)
def wrapper(*args, **kwargs):
logger.debug(f"Sanitizing arg '{arg_name}' on function '{func.__name__}'")
- logger.debug(f"Function annotations: {func.__annotations__}")
# Get Agent from the called function's arguments
agent = kwargs.get(
"agent", len(args) > agent_arg_index and args[agent_arg_index]
)
- logger.debug(f"Args: {args}")
- logger.debug(f"KWArgs: {kwargs}")
- logger.debug(f"Agent argument lifted from function call: {agent}")
if not isinstance(agent, Agent):
raise RuntimeError("Could not get Agent from decorated command's args")
diff --git a/autogpt/processing/text.py b/autogpt/processing/text.py
index 48a2e3e02b..f0a47e53bc 100644
--- a/autogpt/processing/text.py
+++ b/autogpt/processing/text.py
@@ -122,7 +122,6 @@ def summarize_text(
# "Only respond with a concise summary or description of the user message."
)
- logger.debug(f"Summarizing with {model}:\n{summarization_prompt.dump()}\n")
summary = create_chat_completion(
prompt=summarization_prompt, config=config, temperature=0, max_tokens=500
).content