| 3333 | 3332 | const denoising_strength = extension_settings.sd.denoising_strength === undefined ? 1.0 : extension_settings.sd.denoising_strength; |
| 3334 | 3333 | workflow = workflow.replaceAll('"%denoise%"', JSON.stringify(denoising_strength)); |
| 3335 | 3334 | |
| 3335 | + const clip_skip = isNaN(extension_settings.sd.clip_skip) ? -1 : -extension_settings.sd.clip_skip; |
| 3336 | + workflow = workflow.replaceAll('"%clip_skip%"', JSON.stringify(clip_skip)); |
| 3337 | + |
| 3336 | 3338 | placeholders.forEach(ph => { |
| 3337 | 3339 | workflow = workflow.replaceAll(`"%${ph}%"`, JSON.stringify(extension_settings.sd[ph])); |
| 3338 | 3340 | }); |