ai icon indicating copy to clipboard operation
ai copied to clipboard

useAssistant: Add function to start a new thread/reset messages

Open codinginflow opened this issue 2 years ago • 0 comments

Feature Description

There should be a way to clear the message history and start a brand new chat with an existing assistant. Since we can't clear a thread via the OpenAI Assistants API, I guess the correct way would be to start a new thread. To reset the threadId back to zero, in other words.

Use Case

Building a chat UI with a "clear chat" button.

Additional context

No response

codinginflow avatar Nov 22 '23 08:11 codinginflow