mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-29 09:00:18 +09:00
chore: vision model message order
This commit is contained in:
parent
f2b13848eb
commit
7c6a138e1f
@ -325,7 +325,12 @@ export const useChatStore = createPersistStore(
|
||||
let mContent: string | MultimodalContent[] = userContent;
|
||||
|
||||
if (attachImages && attachImages.length > 0) {
|
||||
mContent = [];
|
||||
mContent = [
|
||||
{
|
||||
type: "text",
|
||||
text: userContent,
|
||||
},
|
||||
];
|
||||
mContent = mContent.concat(
|
||||
attachImages.map((url) => {
|
||||
return {
|
||||
@ -336,12 +341,6 @@ 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