Add edit for nano (#276)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2025-09-14 01:38:08 +08:00
1 parent f88d056f9d
commit 0b9cc15364
44 files changed
+423 -112

No files matched your search

+6 -1
View File
@@ -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;