Skip to content

Commit 0f84e95

Browse files
committed
[PRO-936] Local dev loop with resolver
1 parent 4b0bb41 commit 0f84e95

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

openhands/resolver/resolve_issue.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -689,16 +689,9 @@ def int_or_none(value):
689689

690690
my_args = parser.parse_args()
691691

692+
# NOTE: The correct image name is passed in as argument to the script by the GH action.
693+
# If we don't pass it in, it will auto-build it on the fly. Useful for local dev loop.
692694
runtime_container_image = my_args.runtime_container_image
693-
if runtime_container_image is None:
694-
runtime_container_image = (
695-
# BEGIN REPLAY
696-
# if we start publishing versions of the runtime image, we can use this line. until then just use the latest main build
697-
# f'ghcr.io/replayio-public/runtime:{openhands.__version__}-nikolaik'
698-
'ghcr.io/replayio-public/runtime:main-nikolaik'
699-
# END REPLAY
700-
)
701-
702695
owner, repo = my_args.repo.split('/')
703696
token = my_args.token if my_args.token else os.getenv('GITHUB_TOKEN')
704697
username = my_args.username if my_args.username else os.getenv('GITHUB_USERNAME')

scripts/resolver_10609.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
set -e
2+
3+
export LLM_MODEL="anthropic/claude-3.5"
4+
5+
if [[ -z "$LLM_API_KEY" ]]; then
6+
if [[ -z "$ANTHROPIC_API_KEY" ]]; then
7+
echo "LLM_API_KEY or ANTHROPIC_API_KEY environment variable must be set."
8+
exit 1
9+
fi
10+
export LLM_API_KEY=$ANTHROPIC_API_KEY
11+
fi
12+
13+
export DEBUG=1
14+
15+
python -m openhands.resolver.resolve_issue \
16+
--repo replayio-public/bench-devtools-10609 \
17+
--issue-number 15 \
18+
--issue-type issue \
19+
--max-iterations 50 \
20+
--comment-id 2526444494 \
21+
--output-dir /tmp/resolver-output

0 commit comments

Comments
 (0)