Sending additional data along with messages in useChat #2889
-
Messages in useChat has a field for data but how to send additional data along with messages in FastAPI backend? Code snippet will be helpful. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
lgrammel
Sep 4, 2024
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ojasskapre
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
handleSubmit
andappend
helpers allow you to specify additional data that is sent w/ the request.