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]

default tools: Do not require WINDOW to be set

Kilian Lieretdce5daf99f71
diff --git a/tools/defaults/install.sh b/tools/defaults/install.sh
index 203aa86f..e6387a97 100644
--- a/tools/defaults/install.sh
+++ b/tools/defaults/install.sh
@@ -7,15 +7,6 @@ if [ -f "$SCRIPT_DIR/lib/utils.sh" ]; then
source "$SCRIPT_DIR/lib/utils.sh"
fi
-if [ -z "$WINDOW" ]; then
- echo "Error: WINDOW not set"
- exit 1
-fi
-if [ -z "$OVERLAP" ]; then
- echo "Error: OVERLAP not set"
- exit 1
-fi
-
_write_env "WINDOW" "${WINDOW:-100}"
_write_env "OVERLAP" "${OVERLAP:-2}"
_write_env "CURRENT_LINE" "${CURRENT_LINE:-0}"