Deleting thread with useAssistant and Assistant Response (Next Ai)
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
Hello, I am using the Next Ai package to interact with assistant through useAssistant and Assistant Response on the BE using
I have a function that deletes a thread with a separate endpoint
Which calls
It doesn't appear to include anyway to tell the useAssistant to delete the current thread and the messages?
Because of this, I am getting an error since the old thread id is being passed along even after I can the DELETE endpoint.
Is there any way around this currently?
https://sdk.vercel.ai/docs/api-reference/use-assistant
https://sdk.vercel.ai/docs/api-reference/providers/assistant-response
POST api/chat. I have a function that deletes a thread with a separate endpoint
DELETE api/chat. Which calls
openai.beta.threads.del(threadId)It doesn't appear to include anyway to tell the useAssistant to delete the current thread and the messages?
Because of this, I am getting an error since the old thread id is being passed along even after I can the DELETE endpoint.
Is there any way around this currently?
https://sdk.vercel.ai/docs/api-reference/use-assistant
https://sdk.vercel.ai/docs/api-reference/providers/assistant-response