mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
fix: image generation
This commit is contained in:
parent
31b311c3c9
commit
85e9e231ed
@ -304,12 +304,12 @@
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
message.files = res.map((image) => ({
|
const files = res.map((image) => ({
|
||||||
type: 'image',
|
type: 'image',
|
||||||
url: `${image.url}`
|
url: `${image.url}`
|
||||||
}));
|
}));
|
||||||
|
|
||||||
dispatch('save', message);
|
dispatch('save', { ...message, files: files });
|
||||||
}
|
}
|
||||||
|
|
||||||
generatingImage = false;
|
generatingImage = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user