mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
refac
This commit is contained in:
parent
bf476452a8
commit
c07fa08b99
1 changed files with 6 additions and 8 deletions
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue