Replies: 1 comment
-
If you're streaming, it's probably easier to do this on the client. This article about rendering streaming markdown might be helpful guide to follow -- unsure if you need markdown too... if not swap the markdown parts for the latext parser. If so, extend react-markdown with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need to render some LaTeX from responses obtained from a LLM using streamText and useChat. In particular, I need to call a function on messages received. Is it possible to do this in one of the callback functions for streamText or useChat? If so, which one is best? Or, does the rendering have to be done directly in the return object for the react code?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions