Hide sampling method select from unsupported backends

This commit is contained in:
Cohee 2024-07-04 23:00:33 +03:00
parent ce71c0ef86
commit b682519042
2 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,7 @@
</div>
<div class="flex-container">
<div class="flex1">
<div class="flex1" data-sd-source="extras,horde,auto,drawthings,novel,vlad,comfy">
<label for="sd_sampler" data-i18n="Sampling method">Sampling method</label>
<select id="sd_sampler"></select>
</div>

View File

@ -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) {