From b682519042106624c49978142d4caf03074937cc Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 4 Jul 2024 23:00:33 +0300 Subject: [PATCH] Hide sampling method select from unsupported backends --- public/scripts/extensions/stable-diffusion/settings.html | 2 +- src/endpoints/stable-diffusion.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/scripts/extensions/stable-diffusion/settings.html b/public/scripts/extensions/stable-diffusion/settings.html index f0a29c422..25869a966 100644 --- a/public/scripts/extensions/stable-diffusion/settings.html +++ b/public/scripts/extensions/stable-diffusion/settings.html @@ -242,7 +242,7 @@
-
+
diff --git a/src/endpoints/stable-diffusion.js b/src/endpoints/stable-diffusion.js index d5ba855b2..0ea8bfc27 100644 --- a/src/endpoints/stable-diffusion.js +++ b/src/endpoints/stable-diffusion.js @@ -807,6 +807,8 @@ stability.post('/generate', jsonParser, async (request, response) => { const { payload, model } = request.body; + console.log('Stability AI request:', model, payload); + const formData = new FormData(); for (const [key, value] of Object.entries(payload)) { if (value !== undefined) {