fix user input msg content type

This commit is contained in:
2023-11-09 13:42:33 +08:00
parent 1033298187
commit 4b7d601840

View File

@@ -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({