Add edit for nano (#276)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
f88d056f9d
commit
0b9cc15364
44 files changed
+423
-112
No files matched your search
@@ -128,8 +128,13 @@ export default defineComponent({
|
||||
});
|
||||
},
|
||||
async onGenerate() {
|
||||
const cfg: any = { ...(this.config || {}) };
|
||||
// When action is 'edit', do not send image_urls
|
||||
if (cfg?.action === 'generate' && 'image_urls' in cfg) {
|
||||
delete cfg.image_urls;
|
||||
}
|
||||
const request = {
|
||||
...this.config,
|
||||
...cfg,
|
||||
callback_url: CALLBACK_URL
|
||||
} as INanobananaGenerateRequest;
|
||||
const token = this.credential?.token;
|
||||
|
||||
Reference in new issue
Block a user