mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-26 09:21:23 -04:00
refac
This commit is contained in:
@@ -258,14 +258,12 @@ export const imageEdits = async (
|
|||||||
...(token && { authorization: `Bearer ${token}` })
|
...(token && { authorization: `Bearer ${token}` })
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
form_data: {
|
image: images,
|
||||||
image: images,
|
prompt,
|
||||||
prompt,
|
...(model && { model }),
|
||||||
...(model && { model }),
|
...(size && { size }),
|
||||||
...(size && { size }),
|
...(n && { n }),
|
||||||
...(n && { n }),
|
...(background && { background })
|
||||||
...(background && { background })
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user