Spaces:
Sleeping
Sleeping
Upload 10 files
Browse files
server.js
CHANGED
|
@@ -366,11 +366,14 @@ app.post('/api/generate', async (req, res) => {
|
|
| 366 |
...(flat.seed !== null ? { seed: flat.seed } : {})
|
| 367 |
};
|
| 368 |
|
| 369 |
-
// Minimal payload (some models reject extended fields).
|
| 370 |
const variantCMinimal = {
|
| 371 |
model: targetModel,
|
| 372 |
input_args: {
|
| 373 |
-
prompt: flat.prompt
|
|
|
|
|
|
|
|
|
|
| 374 |
}
|
| 375 |
};
|
| 376 |
|
|
|
|
| 366 |
...(flat.seed !== null ? { seed: flat.seed } : {})
|
| 367 |
};
|
| 368 |
|
| 369 |
+
// Minimal payload (some models reject extended fields). Include size/steps/seed for hunyuan-image-3 compatibility
|
| 370 |
const variantCMinimal = {
|
| 371 |
model: targetModel,
|
| 372 |
input_args: {
|
| 373 |
+
prompt: flat.prompt,
|
| 374 |
+
size: `${flat.width}x${flat.height}`,
|
| 375 |
+
steps: flat.num_inference_steps,
|
| 376 |
+
...(flat.seed !== null ? { seed: flat.seed } : {})
|
| 377 |
}
|
| 378 |
};
|
| 379 |
|