Skip to content

Comments

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

Merged
lgrammel merged 7 commits intomainfrom
lg/5475
Apr 3, 2025
Merged

fix (core): send buffered text in smooth stream when stream parts change#5531
lgrammel merged 7 commits intomainfrom
lg/5475

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
Contributor

@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
…nge (#5531)

Co-authored-by: Carl Brugger <cebrugg@gmail.com>
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