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

chore (ai/core): streamText returns result immediately (no Promise) #3658

Merged
merged 7 commits into from
Nov 13, 2024

Conversation

lgrammel
Copy link
Collaborator

@lgrammel lgrammel commented Nov 13, 2024

Tasks

  • basic implementation
  • replace occurrences
  • error handling
  • 4.0 guide updates
  • manual testing
  • changeset

@lgrammel lgrammel changed the title step1 chore (ai/core): streamText returns result immediately (no Promise) Nov 13, 2024
@lgrammel lgrammel marked this pull request as ready for review November 13, 2024 18:02
Copy link
Contributor

Choose a reason for hiding this comment

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

this edit seems unintentional, as an old migration guide?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch

@lgrammel lgrammel merged commit f967199 into main Nov 13, 2024
8 checks passed
@lgrammel lgrammel deleted the lg/stream-text branch November 13, 2024 19:36
@patelvivekdev
Copy link

Is there any particular reason for the change from promise to no promise?

@lgrammel
Copy link
Collaborator Author

Yes - promises block immediate returns and thus prevent us from streaming back additional data using StreamData before the LLM provider responds.

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