#resetting the data object from useChat in vercel ai sdk

1 messages · Page 1 of 1 (latest)

mild verge
#

has anyone figured out how to reset the 'data' object that comes from vercel's useChat, that is implemented in the create-llama cli apps? I use the 'data' object to send citations and other important metadata for my app, but on subsequent chats it retains the previous information and gets bloated if a session goes on for too long. I don't see a resetData option on vercel's SDK and the only alternative is to reload the page which is slow

violet merlinBOT
#

Hi @mild verge. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but the provided knowledge sources do not contain information on how to reset the 'data' object that comes from Vercel's useChat. It would be best to refer to the official Vercel AI SDK documentation or reach out to their support for more detailed guidance.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: