mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +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 response = await openai.createImageEdit(
|
||||
fs.createReadStream(croppedFileLoc),
|
||||
fs.createReadStream(maskFileLoc),
|
||||
prompt,
|
||||
prompt, fs.createReadStream(maskFileLoc),
|
||||
num,
|
||||
size,
|
||||
'b64_json',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue