File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/litellm/llms/custom_httpx/llm_http_handler.py", line 200, in _make_common_sync_call
raise self._handle_error(e=e, provider_config=provider_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/litellm/llms/custom_httpx/llm_http_handler.py", line 2410, in _handle_error
raise provider_config.get_error_class(
litellm.llms.openrouter.common_utils.OpenRouterException: {"error":{"message":"No endpoints found that support tool use. To learn more about provider routing, visit:
https://openrouter.ai/docs/provider-routing","code":404}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/andrewcz/OpenHands/openhands/controller/agent_controller.py", line 363, in _step_with_exception_handling
await self._step()
File "/home/andrewcz/OpenHands/openhands/controller/agent_controller.py", line 870, in _step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/openhands/agenthub/codeact_agent/codeact_agent.py", line 215, in step
response = self.llm.completion(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/tenacity/__init__.py", line 338, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/tenacity/__init__.py", line 477, in
call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/tenacity/__init__.py", line 378, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/tenacity/__init__.py", line 400, in <lambda>
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/tenacity/__init__.py", line 480, in
call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/openhands/llm/llm.py", line 328, in wrapper
resp: ModelResponse = self._completion_unwrapped(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/litellm/utils.py", line 1344, in wrapper
raise e
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/litellm/utils.py", line 1219, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/litellm/main.py", line 3494, in completion
raise exception_type(
^^^^^^^^^^^^^^^
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2301, in exception_type
raise e
File "/home/andrewcz/OpenHands/.venv/lib64/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2181, in exception_type
raise NotFoundError(
litellm.exceptions.NotFoundError: litellm.NotFoundError: NotFoundError: OpenrouterException - {"error":{"message":"No endpoints found that support tool use. To learn more about provider routing, visit:
https://openrouter.ai/docs/provider-routing","code":404}}
10
3416 - openhands
ERROR loop.py:24 - NotFoundError: litellm.NotFoundError: NotFoundError: OpenrouterException - {"error":{"message":"No endpoints found that support tool use. To learn more about provider routing, visit:
https://openrouter.ai/docs/provider-routing","code":404}}
⚠️ Session was interrupted: error
((.venv) ) 📦[andrewcz@ ~]$