Skip to content

Update React guide for v3 - #1128

Merged
xenova merged 2 commits into
huggingface:mainfrom
sroussey:update-react-guide
Jan 15, 2025
Merged

xenova merged 2 commits into
huggingface:mainfrom
sroussey:update-react-guide

Conversation

@sroussey

Copy link
Copy Markdown
Contributor

Revise the React guide to incorporate changes related to the new streaming capabilities.

@sroussey sroussey mentioned this pull request Dec 31, 2024
3 of 4 tasks

@xenova xenova left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for this! I missed this when updating the docs for the Transformers.js v3 release. One thing which would probably be better is for the callback function to only post back the new text (and then the new text should be appended to the existing text, on the react side of things).

@sroussey

sroussey commented Jan 1, 2025

Copy link
Copy Markdown
Contributor Author

True, particularly for an example.

Old habit of production code where fixing bugs with the smallest number of changes.

@xenova
xenova merged commit f126091 into huggingface:main Jan 15, 2025
@xenova

xenova commented Jan 15, 2025

Copy link
Copy Markdown
Collaborator

Thanks again @sroussey!

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.

2 participants