Replies: 1 comment
-
As I understand, this is done by "processChatResponse," but it is not exposed to the outside. https://github.com/vercel/ai/blob/main/packages/ui-utils/src/process-chat-response.ts#L19 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
So, my FE must load past conversations from a database that delivers the same format as the vercel stream protocol (the data o e).
Is there an easy way to parse it to a bunch of json messages I can use to rebuild the chat history? (Say, the initialMessages arg of useChat?)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions