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

fix (core): send buffered text in smooth stream when stream parts change #5531

Merged
merged 7 commits into from
Apr 3, 2025

Conversation

lgrammel
Copy link
Collaborator

@lgrammel lgrammel commented Apr 3, 2025

Continues #5475

carlbrugger and others added 6 commits March 31, 2025 20:14
The word-based regex pattern (/\s*\S+\s+/m) requires trailing whitespace after each word. The last text-delta won't have a trailing space causing the last word in the last text-delta to not be returned until after any tool calls the model may make.
Copy link
Member

@samdenty samdenty left a comment

Choose a reason for hiding this comment

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

lgtm

@lgrammel lgrammel merged commit c45d100 into main Apr 3, 2025
7 checks passed
@lgrammel lgrammel deleted the lg/5475 branch April 3, 2025 12:03
lgrammel added a commit that referenced this pull request Apr 3, 2025
samdenty added a commit that referenced this pull request Apr 3, 2025
* origin/main:
  docs: Use new `create-nuxt` tool when starting Nuxt projects (#5175)
  chore (ui/react,vue): update more tests to unified test server (#5509)
  Version Packages (#5532)
  fix (core): send buffered text in smooth stream when stream parts change (#5531)
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.

4 participants