Skip to content

fix: deepseek reasoning content content aggregator#1485

Merged
looplj merged 1 commit into
unstablefrom
dev-tmp
Apr 25, 2026
Merged

fix: deepseek reasoning content content aggregator#1485
looplj merged 1 commit into
unstablefrom
dev-tmp

Conversation

@looplj

@looplj looplj commented Apr 25, 2026

Copy link
Copy Markdown
Owner

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the OpenAI stream aggregator to ensure that empty reasoning_content strings are preserved during aggregation, which is essential for compatibility with models like DeepSeek. A new hasReasoningContent boolean flag was added to the choiceAggregator struct to track the presence of the field independently of its content length. Additionally, new test cases verify that empty reasoning content is correctly handled and that the field is omitted when not present in the stream. I have no feedback to provide.

@looplj looplj merged commit f9d75f2 into unstable Apr 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant