feat: support dalle image variation

This commit is contained in:
ikechan8370 2023-02-25 15:23:47 +08:00
parent 38de2ce714
commit 5fceef37ec
5 changed files with 127 additions and 6 deletions

View file

@ -279,7 +279,7 @@ export class chatgpt extends plugin {
}
if (reply) {
for (let val of reply) {
if (val.type == 'image') {
if (val.type === 'image') {
e.img = [val.url]
break
}