mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-26 07:30:18 +09:00
fix: #220
This commit is contained in:
parent
c7450e3ee0
commit
bdaf416a10
@ -314,12 +314,7 @@ export const useChatStore = createPersistStore(
|
||||
let mContent: string | MultimodalContent[] = userContent;
|
||||
|
||||
if (attachImages && attachImages.length > 0) {
|
||||
mContent = [
|
||||
{
|
||||
type: "text",
|
||||
text: userContent,
|
||||
},
|
||||
];
|
||||
mContent = [];
|
||||
mContent = mContent.concat(
|
||||
attachImages.map((url) => {
|
||||
return {
|
||||
@ -330,6 +325,12 @@ export const useChatStore = createPersistStore(
|
||||
};
|
||||
}),
|
||||
);
|
||||
mContent = mContent.concat([
|
||||
{
|
||||
type: "text",
|
||||
text: userContent,
|
||||
},
|
||||
]);
|
||||
}
|
||||
let userMessage: ChatMessage = createMessage({
|
||||
role: "user",
|
||||
|
Loading…
Reference in New Issue
Block a user