-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Append for useAssistant #1393
Comments
Available in |
@lgrammel really grateful for the quick implementation here. When I use append, the status helper variable isn't set to At the moment, I'm relying on that status changing to trigger storage of user & assistant messages, since useAssistant doesn't have useChat's |
@AlexIsMaking thanks for letting me know. it seems i dropped it by accident during the change |
Hello - I have a question and possible bug regarding the I would expect that calling For additional context, I am adding prompts to the chat form that a user can click which would automatically send a message with the prompt content, rather than having to manually type out the message...and it seems like Is this a bug or is it expected behavior? Edit: this seems to be fixed...just had to upgrade to |
Thanks. I just ran into the bug lol @brian-yates |
Feature Description
I've just switched to useAssistant and the function that I'm missing the most is the append function that's available for useChat.
My hacky workaround is to set the input using setInput and then trigger submitMessage once the input has been set. This doesn't look great to the user.
Use Case
I'm displaying buttons in my UI which will insert prompts, to start new conversations. I need to send the prompt to OpenAI when it's submitted.
The text was updated successfully, but these errors were encountered: