Skip to content

Commit 8a2e633

Browse files
committed
fix
1 parent 04ed5f2 commit 8a2e633

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/dashboard/src/app/nebula-app/(app)/components/CustomChat/CustomChatContent.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ function CustomChatContentLoggedIn(props: {
258258
}}
259259
isChatStreaming={isChatStreaming}
260260
prefillMessage={undefined}
261-
sendMessage={(input) => {
262-
// Ensure input is a string
263-
const text = typeof input === "string" ? input : "";
261+
sendMessage={(siwaUserMessage) => {
264262
const userMessage: UserMessage = {
265263
type: "user",
266-
content: [{ type: "text", text }],
264+
content: siwaUserMessage.content
265+
.filter((c) => c.type === "text")
266+
.map((c) => ({ type: "text", text: c.text })),
267267
};
268268
handleSendMessage(userMessage);
269269
}}

0 commit comments

Comments
 (0)