OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: Discrepancy between Openrouter's deepseek-r1 and deepseek-reasoner

Open ryanhoangt opened this issue 10 months ago • 3 comments

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

Describe the bug and reproduction steps

When trying to use deepseek r1 via openrouter vs. deepseek API:

I'm not sure what is the correct way to use this reasoning_content and should we find a way to unify this? E.g. we can run evals with reasoning_content included/excluded and see how it affects performance? If it affects negatively, we can probably display it on UI only (similar to deepseek chat UI) and not send to the LLM in subsequent steps.

OpenHands Installation

Docker command in README

OpenHands Version

main

Operating System

Linux

Logs, Errors, Screenshots, and Additional Context

Response by Openrouter's deepseek-r1 Image
Response deepseek-reasoner Image

No response

ryanhoangt avatar Feb 04 '25 03:02 ryanhoangt

IMO we should report this issue to litellm, the bug is there, so they can unify how it sends it.

I think reasoning_content would be the right way from litellm, and then yes, as you say, we can eval how we use it.

enyst avatar Feb 04 '25 04:02 enyst

Yeah, indeed there seems to be a relevant issue there: https://github.com/BerriAI/litellm/issues/8193

ryanhoangt avatar Feb 04 '25 05:02 ryanhoangt

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Mar 07 '25 02:03 github-actions[bot]

This issue was closed because it has been stalled for over 30 days with no activity.

github-actions[bot] avatar Mar 15 '25 02:03 github-actions[bot]

This was just closed as completed in litellm. Looking forward to see how it works!

enyst avatar Mar 15 '25 03:03 enyst