[PR #3068] [MERGED] parse streams from reasoning_content from DeepSeek API #4206

Closed
opened 2026-02-22 18:35:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3068
Author: @timothycarambat
Created: 1/30/2025
Status: Merged
Merged: 1/30/2025
Merged by: @timothycarambat

Base: masterHead: deepseek-reasonser-thought-handler


📝 Commits (1)

  • f787b8a parse streams from reasoning_content from DeepSeek API

📊 Changes

1 file changed (+164 additions, -8 deletions)

View changed files

📝 server/utils/AiProviders/deepseek/index.js (+164 -8)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

connect #3076

What is in this change?

  • Continuation of handling response content from DeepSeek API

Additional Information

  • Adds handling for streaming and non-streaming of responses form deepseek-reasoner model with no side effects of deepseek-chat model.

  • We had to improve DeepSeek to have its own chat handler to handle the reasoning buffer, but otherwise very similar to generic handler.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3068 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 1/30/2025 **Status:** ✅ Merged **Merged:** 1/30/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `deepseek-reasonser-thought-handler` --- ### 📝 Commits (1) - [`f787b8a`](https://github.com/Mintplex-Labs/anything-llm/commit/f787b8a35679af383614f2807596c63fc3f323dd) parse streams from `reasoning_content` from DeepSeek API ### 📊 Changes **1 file changed** (+164 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/AiProviders/deepseek/index.js` (+164 -8) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> connect #3076 ### What is in this change? - Continuation of handling response content from DeepSeek API ### Additional Information - Adds handling for streaming and non-streaming of responses form `deepseek-reasoner` model with no side effects of `deepseek-chat` model. - We had to improve DeepSeek to have its own chat handler to handle the reasoning buffer, but otherwise very similar to generic handler. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [ ] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:21 -05:00
yindo closed this issue 2026-02-22 18:35:21 -05:00
yindo changed title from [PR #3068] parse streams from `reasoning_content` from DeepSeek API to [PR #3068] [MERGED] parse streams from `reasoning_content` from DeepSeek API 2026-06-05 15:17:23 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4206