<@U06QJHRBLQG> I'm encountering this error recentl...
# questions
t
@chilly-france-44439 I'm encountering this error recently using the LiteLLM proxy for
neulab/deepseek-v3
in specific. Can you look into it?
Copy code
23:27:47 - openhands:ERROR: agent_controller.py:311 - [Agent Controller 91c9461b-012e-4644-adb9-1521aa8bf88b-21c4c8c9ce075645] Error while running the agent (session ID: 91c9461b-012e-4644-adb9-1521aa8bf88b-21c4c8c9ce075645): litellm.NotFoundError: Error code: 404 - {'error': {'message': 'litellm.NotFoundError: NotFoundError: Azure_aiException - {"error":{"code":"404","message": "Resource not found"}}. Received Model Group=model_name_a265eca9-315b-4e41-8531-cf268cec4e40_b3e08af5-abb3-4a85-bd13-fcc914167b9e\nAvailable Model Group Fallbacks=None', 'type': None, 'param': None, 'code': '404'}}. Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 736, in completion
    raise e
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 664, in completion
    ) = self.make_sync_openai_chat_completion_request(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/litellm/litellm_core_utils/logging_utils.py", line 149, in sync_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 482, in make_sync_openai_chat_completion_request
    raise e
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/litellm/llms/openai/openai.py", line 464, in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/openai/_legacy_response.py", line 364, in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/openai/_utils/_utils.py", line 287, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/openai/resources/chat/completions/completions.py", line 1150, in create
    return self._post(
           ^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'litellm.NotFoundError: NotFoundError: Azure_aiException - {"error":{"code":"404","message": "Resource not found"}}. Received Model Group=model_name_a265eca9-315b-4e41-8531-cf268cec4e40_b3e08af5-abb3-4a85-bd13-fcc914167b9e\nAvailable Model Group Fallbacks=None', 'type': None, 'param': None, 'code': '404'}}
c
Seems like a litellm proxy configuration error? maybe you need @limited-student-10747 to help take a look though
👍 1
l
Sorry, I’ll need to fix this. Please wait a bit
t
Thank you!