The Open Standard for Generative UI
use create message as provided by user in CrayonChat (#111)
abhithesys2e201c2f8cf4
diff --git a/js/packages/react-ui/src/components/CrayonChat/CrayonChat.tsx b/js/packages/react-ui/src/components/CrayonChat/CrayonChat.tsxindex 117d32ff7..e8398effc 100644--- a/js/packages/react-ui/src/components/CrayonChat/CrayonChat.tsx+++ b/js/packages/react-ui/src/components/CrayonChat/CrayonChat.tsx@@ -91,9 +91,7 @@ export const CrayonChat = ({onProcessMessage: async ({ message, abortController, threadManager }) => {const newMessage: UserMessage = {id: crypto.randomUUID(),- role: "user",- type: "prompt",- message: message.message,+ ...message,};threadManager.appendMessages(newMessage);