Skip to content

Commit

Permalink
always log resolver workflow to log file (since its too noisy for the…
Browse files Browse the repository at this point in the history
… terminal)
  • Loading branch information
Domiii committed Dec 9, 2024
1 parent 0f84e95 commit 68577b9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/resolver_10609.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ set -e

export LLM_MODEL="anthropic/claude-3.5"

if [[ -z "$TMP_DIR" ]]; then
TMP_DIR="/tmp"
fi
LOG_FILE="$TMP_DIR/tmp.log"

if [[ -z "$LLM_API_KEY" ]]; then
if [[ -z "$ANTHROPIC_API_KEY" ]]; then
echo "LLM_API_KEY or ANTHROPIC_API_KEY environment variable must be set."
Expand All @@ -12,10 +17,13 @@ fi

export DEBUG=1

echo -e "Logging to \"$LOG_FILE\"\n"

python -m openhands.resolver.resolve_issue \
--repo replayio-public/bench-devtools-10609 \
--issue-number 15 \
--issue-type issue \
--max-iterations 50 \
--comment-id 2526444494 \
--output-dir /tmp/resolver-output
--output-dir "$TMP_DIR/resolver-output" \
> "$LOG_FILE" 2>&1

0 comments on commit 68577b9

Please sign in to comment.