diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 27286b3..057f207 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -231,7 +231,7 @@ export default function ChatBOX(props: { if (images.length > 0) { content = images; } - if (inputMsg.trim()) { + if (images.length > 0 && inputMsg.trim()) { content = [{ type: "text", text: inputMsg }, ...images]; } chatStore.history.push({