mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: image generation
This commit is contained in:
parent
31b311c3c9
commit
85e9e231ed
1 changed files with 2 additions and 2 deletions
|
|
@ -304,12 +304,12 @@
|
|||
console.log(res);
|
||||
|
||||
if (res) {
|
||||
message.files = res.map((image) => ({
|
||||
const files = res.map((image) => ({
|
||||
type: 'image',
|
||||
url: `${image.url}`
|
||||
}));
|
||||
|
||||
dispatch('save', message);
|
||||
dispatch('save', { ...message, files: files });
|
||||
}
|
||||
|
||||
generatingImage = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue