All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
36.56k stars 4.15k forks source link

[Resolver] Unexpected keyword argument 'images_urls' #5033

Closed neubig closed 2 hours ago

neubig commented 2 hours ago

I have configured the environment variables, and when I add the fix-me tag, the action triggers correctly, but it generates the error below. I also tried modifying the action by adding verification of the enc values, and they are all correct. I use OpenRouter and pass the model anthropic/claude-3.5-sonnet. Any ideas ?

Part of my action:

  call-openhands-resolver:
    needs: verify-prerequisites
    if: needs.verify-prerequisites.outputs.can-proceed == 'true'
    uses: All-Hands-AI/openhands-resolver/.github/workflows/openhands-resolver.yml@main
    with:
      macro: ${{ vars.OPENHANDS_MACRO || '@openhands-agent' }}
      max_iterations: 50
    secrets:
      PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
      PAT_USERNAME: ${{ vars.PAT_USERNAME }}
      LLM_MODEL: ${{ vars.LLM_MODEL }}
      LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
      LLM_BASE_URL: ${{ vars.LLM_BASE_URL }}

My log:

Cloning into 'output/repo'...
00:21:17 - openhands:INFO: resolve_issue.py:364 - Base commit: bc553693cf4ae1d8d917fc779be6c07e092600ef
00:21:17 - openhands:INFO: resolve_issue.py:375 - Writing output to output/output.jsonl
00:21:17 - openhands:INFO: resolve_issue.py:[38](https://github.com/TestudoSrl/turbo-pricebook/actions/runs/11808064676/job/32895964800#step:10:39)8 - Resolving issue 21 with Agent CodeActAgent, model claude-3.5-sonnet, max iterations 50.
00:21:17 - openhands:INFO: resolve_issue.py:172 - Starting fixing issue 21.
00:21:17 - openhands:INFO: eventstream_runtime.py:220 - [runtime 21] Starting runtime with image: ghcr.io/all-hands-ai/runtime:0.13.1-nikolaik
00:22:32 - openhands:INFO: eventstream_runtime.py:224 - [runtime 21] Container started: openhands-runtime-21
00:22:32 - openhands:INFO: eventstream_runtime.py:227 - [runtime 21] Waiting for client to become ready at http://localhost:30132...
00:22:54 - openhands:INFO: eventstream_runtime.py:233 - [runtime 21] Runtime is ready.
00:22:54 - openhands:INFO: resolve_issue.py:56 - ------------------------------
00:22:54 - openhands:INFO: resolve_issue.py:57 - BEGIN Runtime Completion Fn
00:22:54 - openhands:INFO: resolve_issue.py:58 - ------------------------------
00:22:54 - ACTION
**CmdRunAction (source=None)**
COMMAND:
cd /workspace
00:22:54 - OBSERVATION
**CmdOutputObservation (source=None, exit code=0)**
00:22:54 - ACTION
**CmdRunAction (source=None)**
COMMAND:
git config --global core.pager ""
00:22:54 - OBSERVATION
**CmdOutputObservation (source=None, exit code=0)**
00:22:54 - openhands:INFO: resolve_issue.py:427 - Finished.
ERROR:root:  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/openhands_resolver/resolve_issue.py", line 590, in <module>
    main()
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/openhands_resolver/resolve_issue.py", line 570, in main
    asyncio.run(
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/openhands_resolver/resolve_issue.py", line [41](https://github.com/TestudoSrl/turbo-pricebook/actions/runs/11808064676/job/32895964800#step:10:42)0, in resolve_issue
    output = await process_issue(
             ^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/openhands_resolver/resolve_issue.py", line 211, in process_issue
    action = MessageAction(
             ^^^^^^^^^^^^^^
ERROR:root:<class 'TypeError'>: MessageAction.__init__() got an unexpected keyword argument 'images_urls'
Provider List: https://docs.litellm.ai/docs/providers
Provider List: https://docs.litellm.ai/docs/providers
Error: Process completed with exit code 1.

Moved from All-Hands-AI/openhands-resolver#340

neubig commented 2 hours ago

This was fixed already