Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] OpenRouter的deepseek/deepseek-r1:free模型不显示reasoning内容 #5766

Closed
CK-Tex opened this issue Feb 5, 2025 · 4 comments
Closed
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@CK-Tex
Copy link

CK-Tex commented Feb 5, 2025

🥰 Feature Description

版本:Docker版v1.51.1

问题描述:

如下图所示,深度思考内容不被显示,只有当深度思考完毕后,才会输出结果:

Image

OpenRouter的网页端是可以正常输出深度思考内容的。

🧐 Proposed Solution

启用OpenRouter的deepseek/deepseek-r1:free模型的reasoning?

📝 Additional Information

No response

@CK-Tex CK-Tex added the 🌠 Feature Request New feature or request | 特性与建议 label Feb 5, 2025
@lobehubbot
Copy link
Member

👀 @CK-Tex

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@aquanow-jeffen
Copy link

#5860 Says OpenRouter does not returning reasoning token of R1 model which seems not true from this blog https://openrouter.ai/announcements/reasoning-tokens-for-thinking-models.

@deephbz
Copy link
Contributor

deephbz commented Feb 9, 2025

Should be solved by #5903

deephbz added a commit to deephbz/lobe-chat2 that referenced this issue Feb 11, 2025
deephbz added a commit to deephbz/lobe-chat2 that referenced this issue Feb 12, 2025
arvinxx pushed a commit that referenced this issue Feb 12, 2025
…pseek-r1 (#5903)

* ✨ feat: Support include_reasoning for OpenRouter provider's models. Solves #5766

* ✨ feat: Support display OpenRouter's "reasoning" output by transforming
its "reasoning" to be consistent with most other platforms: reasoning outputs wrapped by <think> XML tag.

* Revert openrouter stream transformer: Capture reasoning content inside openai stream processor

* Address PR comments: r1 does not support functional calling

* add unittest for openrouter reasoning stream handling
@arvinxx arvinxx closed this as completed Feb 12, 2025
@lobehubbot
Copy link
Member

@CK-Tex

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

github-actions bot pushed a commit that referenced this issue Feb 12, 2025
### [Version&nbsp;1.53.1](v1.53.0...v1.53.1)
<sup>Released on **2025-02-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix reasoning output for OpenRouter reasoning models like deepseek-r1.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix reasoning output for OpenRouter reasoning models like deepseek-r1, closes [#5903](#5903) [#5766](#5766) ([bfd9317](bfd9317))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this issue Feb 12, 2025
### [Version&nbsp;1.95.1](v1.95.0...v1.95.1)
<sup>Released on **2025-02-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Disable openrouter client fetch, fix reasoning output for OpenRouter reasoning models like deepseek-r1.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Disable openrouter client fetch, closes [lobehub#6043](https://github.com/bentwnghk/lobe-chat/issues/6043) ([63b22ce](63b22ce))
* **misc**: Fix reasoning output for OpenRouter reasoning models like deepseek-r1, closes [lobehub#5903](https://github.com/bentwnghk/lobe-chat/issues/5903) [lobehub#5766](https://github.com/bentwnghk/lobe-chat/issues/5766) ([bfd9317](bfd9317))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this issue Feb 14, 2025
…pseek-r1 (lobehub#5903)

* ✨ feat: Support include_reasoning for OpenRouter provider's models. Solves lobehub#5766

* ✨ feat: Support display OpenRouter's "reasoning" output by transforming
its "reasoning" to be consistent with most other platforms: reasoning outputs wrapped by <think> XML tag.

* Revert openrouter stream transformer: Capture reasoning content inside openai stream processor

* Address PR comments: r1 does not support functional calling

* add unittest for openrouter reasoning stream handling
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this issue Feb 14, 2025
### [Version&nbsp;1.53.1](lobehub/lobe-chat@v1.53.0...v1.53.1)
<sup>Released on **2025-02-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix reasoning output for OpenRouter reasoning models like deepseek-r1.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix reasoning output for OpenRouter reasoning models like deepseek-r1, closes [lobehub#5903](lobehub#5903) [lobehub#5766](lobehub#5766) ([bfd9317](lobehub@bfd9317))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this issue Feb 17, 2025
…pseek-r1 (lobehub#5903)

* ✨ feat: Support include_reasoning for OpenRouter provider's models. Solves lobehub#5766

* ✨ feat: Support display OpenRouter's "reasoning" output by transforming
its "reasoning" to be consistent with most other platforms: reasoning outputs wrapped by <think> XML tag.

* Revert openrouter stream transformer: Capture reasoning content inside openai stream processor

* Address PR comments: r1 does not support functional calling

* add unittest for openrouter reasoning stream handling
ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this issue Feb 17, 2025
### [Version&nbsp;1.53.1](lobehub/lobe-chat@v1.53.0...v1.53.1)
<sup>Released on **2025-02-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix reasoning output for OpenRouter reasoning models like deepseek-r1.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix reasoning output for OpenRouter reasoning models like deepseek-r1, closes [lobehub#5903](lobehub#5903) [lobehub#5766](lobehub#5766) ([bfd9317](lobehub@bfd9317))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

5 participants