mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 适配openai新版dalle api
This commit is contained in:
parent
e5a0463ce0
commit
9377d66b47
1 changed files with 1 additions and 2 deletions
|
|
@ -127,8 +127,7 @@ export async function editImage (originalImage, mask = [], prompt, num = 1, size
|
||||||
let maskFileLoc = await createMask(croppedFileLoc, mask)
|
let maskFileLoc = await createMask(croppedFileLoc, mask)
|
||||||
let response = await openai.createImageEdit(
|
let response = await openai.createImageEdit(
|
||||||
fs.createReadStream(croppedFileLoc),
|
fs.createReadStream(croppedFileLoc),
|
||||||
fs.createReadStream(maskFileLoc),
|
prompt, fs.createReadStream(maskFileLoc),
|
||||||
prompt,
|
|
||||||
num,
|
num,
|
||||||
size,
|
size,
|
||||||
'b64_json',
|
'b64_json',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue