Hide sampling method select from unsupported backends
| @@ -242,7 +242,7 @@ | |||
| 242 | </div> | 242 | </div> |
| 243 | 243 | ||
| 244 | <div class="flex-container"> | 244 | <div class="flex-container"> |
| 245 | <div class="flex1"> | 245 | <div class="flex1" data-sd-source="extras,horde,auto,drawthings,novel,vlad,comfy"> |
| 246 | <label for="sd_sampler" data-i18n="Sampling method">Sampling method</label> | 246 | <label for="sd_sampler" data-i18n="Sampling method">Sampling method</label> |
| 247 | <select id="sd_sampler"></select> | 247 | <select id="sd_sampler"></select> |
| 248 | </div> | 248 | </div> |
| @@ -807,6 +807,8 @@ stability.post('/generate', jsonParser, async (request, response) => { | |||
| 807 | 807 | ||
| 808 | const { payload, model } = request.body; | 808 | const { payload, model } = request.body; |
| 809 | 809 | ||
| 810 | console.log('Stability AI request:', model, payload); | ||
| 811 | |||
| 810 | const formData = new FormData(); | 812 | const formData = new FormData(); |
| 811 | for (const [key, value] of Object.entries(payload)) { | 813 | for (const [key, value] of Object.entries(payload)) { |
| 812 | if (value !== undefined) { | 814 | if (value !== undefined) { |