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

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