Hide sampling method select from unsupported backends
This commit is contained in:
parent
ce71c0ef86
commit
b682519042
|
@ -242,7 +242,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-container">
|
<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>
|
<label for="sd_sampler" data-i18n="Sampling method">Sampling method</label>
|
||||||
<select id="sd_sampler"></select>
|
<select id="sd_sampler"></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -807,6 +807,8 @@ stability.post('/generate', jsonParser, async (request, response) => {
|
||||||
|
|
||||||
const { payload, model } = request.body;
|
const { payload, model } = request.body;
|
||||||
|
|
||||||
|
console.log('Stability AI request:', model, payload);
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
for (const [key, value] of Object.entries(payload)) {
|
for (const [key, value] of Object.entries(payload)) {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
|
|
Loading…
Reference in New Issue