Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Enh(models): log model response only on debug level

Kilian Lieret5ec3bb210040
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.py
index 11d29edf..66659cea 100644
--- a/sweagent/agent/models.py
+++ b/sweagent/agent/models.py
@@ -702,7 +702,7 @@ class LiteLLMModel(AbstractModel):
if "is longer than the model's context length" in str(e):
raise ContextWindowExceededError from e
raise
- self.logger.info(f"Response: {response}")
+ self.logger.debug(f"Response: {response}")
try:
cost = litellm.cost_calculator.completion_cost(response)
except Exception as e: