We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ed5f2 commit 8a2e633Copy full SHA for 8a2e633
apps/dashboard/src/app/nebula-app/(app)/components/CustomChat/CustomChatContent.tsx
@@ -258,12 +258,12 @@ function CustomChatContentLoggedIn(props: {
258
}}
259
isChatStreaming={isChatStreaming}
260
prefillMessage={undefined}
261
- sendMessage={(input) => {
262
- // Ensure input is a string
263
- const text = typeof input === "string" ? input : "";
+ sendMessage={(siwaUserMessage) => {
264
const userMessage: UserMessage = {
265
type: "user",
266
- content: [{ type: "text", text }],
+ content: siwaUserMessage.content
+ .filter((c) => c.type === "text")
+ .map((c) => ({ type: "text", text: c.text })),
267
};
268
handleSendMessage(userMessage);
269
0 commit comments