How can I send custom data like systemMessage with useChat #532
erkutgokergil
started this conversation in
Ideas & Feedback
Replies: 1 comment 2 replies
-
Why not just check if messages.length == 0 and add it to initialmessages if it is? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found a solution as below, if you have a better suggestion you can share it.
// route.ts
Beta Was this translation helpful? Give feedback.
All reactions