-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
Cannot retrieve reasoning_content while streaming #29513
Comments
Like me, I believe that the method _convert_delta_to_message_chunk() did not retrieve the key reasoning_content.
|
…tent while streaming Extract reasoning_content in the _convert_delta_to_message_chunk function
…tent while streaming Extract reasoning_content in the _convert_delta_to_message_chunk function
You proposed a very minimal and excellent solution, however, I guess maintainers didn't want to change the base class for the solution. I believe that a change in the specialized DeepSeekChat class might be better if possible. |
Checked other resources
Example Code
When I run the simple code:
I get empty reasoning_content while streaming. However, I need it to display in UI in real-time.
For that I wrote my own solution:
Now I can get my results as a workaround.
For that I created a project around it: https://github.com/yigit353/DeepSeekRAGChat
You can read the post about it: https://www.linkedin.com/posts/yigitbekir_github-yigit353deepseekragchat-a-streamlit-based-activity-7290487810770309120-J0Ln?utm_source=share&utm_medium=member_desktop
Thank you!
Error Message and Stack Trace (if applicable)
No response
Description
additional_kwargs
as a key value pair while streaming withllm.stream
forllm = ChatDeepSeek(model="deepseek-reasoner", temperature=0, streaming=True)
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: