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

Add throttling to onUpdate #2257

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Pulseline-Tech
Copy link

@Pulseline-Tech Pulseline-Tech commented Jul 12, 2024

This fixes #1610 for the useChat() hook by introducing a 50ms throttle to the onUpdate callback.

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.

Error: Maximum update depth exceeded. When using useCompletion hook in nextjs, on long response on gpt-4o
1 participant