forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix: fix reasoning output for OpenRouter reasoning models like dee…
…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
- Loading branch information
Showing
5 changed files
with
235 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters