Hide sampling method select from unsupported backends

b682519042106624c49978142d4caf03074937cc

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +3 -1Ignore whitespace
public/scripts/extensions/stable-diffusion/settings.html+1 -1
@@ -242,7 +242,7 @@
242242 </div>
243243
244244 <div class="flex-container">
245- <div class="flex1">
245+ <div class="flex1" data-sd-source="extras,horde,auto,drawthings,novel,vlad,comfy">
246246 <label for="sd_sampler" data-i18n="Sampling method">Sampling method</label>
247247 <select id="sd_sampler"></select>
248248 </div>
src/endpoints/stable-diffusion.js+2 -0
@@ -807,6 +807,8 @@ stability.post('/generate', jsonParser, async (request, response) => {
807807
808808 const { payload, model } = request.body;
809809
810+ console.log('Stability AI request:', model, payload);
811+
810812 const formData = new FormData();
811813 for (const [key, value] of Object.entries(payload)) {
812814 if (value !== undefined) {