fix(ui): read cfg_scale and clip_skip with snake_case fallback, pass custom image id for recipe creation (#1012)

This commit is contained in:
Will Miao
2026-07-04 18:40:24 +08:00
parent 3494037d20
commit 817fe21b3e
2 changed files with 5 additions and 2 deletions

View File

@@ -586,6 +586,7 @@ export function initMediaControlHandlers(container) {
const imageMetaRaw = this.dataset.imageMeta;
const imageUrl = this.dataset.imageUrl;
const imageNsfw = this.dataset.imageNsfw;
const imgId = this.dataset.imgId || '';
const localPath = this.dataset.localPath || '';
const showcaseSection = this.closest('.showcase-section');
const modelHash = showcaseSection ? showcaseSection.dataset.modelHash : '';
@@ -613,6 +614,7 @@ export function initMediaControlHandlers(container) {
meta: imageMeta,
url: imageUrl,
nsfwLevel: imageNsfw ? parseInt(imageNsfw, 10) : undefined,
id: imgId || undefined,
},
model_hash: modelHash,
model_name: modelName || modelHash,