Skip to content

[Bug]: #10729

@Iamsuperman19871987

Description

@Iamsuperman19871987

Is there an existing issue for the same bug? (If one exists, thumbs up or comment on the issue instead).

  • I have checked the existing issues.

Describe the bug and reproduction steps

your getting errors on the new models - result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andrewcz/.local/lib/python3.12/site-packages/litellm/main.py", line 3452, in completion
raise exception_type(
^^^^^^^^^^^^^^^
File "/home/andrewcz/.local/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2301, in exception_type
raise e
File "/home/andrewcz/.local/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2163, in exception_type
raise BadRequestError(
litellm.exceptions.BadRequestError: litellm.BadRequestError: OpenrouterException - {"error":{"message":"Provider returned error","code":400,"metadata":{"raw":"{"code":"Client specified an invalid argument","error":"Argument not supported on this model: stop"}","provider_name":"xAI"}},"user_id":"user_2eAn7X41fXHSR6Tu6RRbAllRZls"}

20:35:23 - openhands:ERROR: loop.py:24 - BadRequestError: litellm.BadRequestError: OpenrouterException - {"error":{"message":"Provider returned error","code":400,"metadata":{"raw":"{"code":"Client specified an invalid argument","error":"Argument not supported on this model: stop"}","provider_name":"xAI"}},"user_id":"user_2eAn7X41fXHSR6Tu6RRbAllRZls"}
⚠️ Session was interrupted: error

(work_env) 📦[andrewcz@ work_curves_nn_test]$

OpenHands Installation

Docker command in README

OpenHands Version

No response

Model Name

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingllmRelated to specific LLMs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions