feat: adapt image tuning by engine
This commit is contained in:
@@ -87,7 +87,8 @@ export function buildEvolinkImagePayload(
|
||||
};
|
||||
|
||||
if (!payload.prompt) throw new Error("Prompt is required for image generation.");
|
||||
if (settings.quality) payload.quality = settings.quality;
|
||||
const quality = cleanOptional(typeof input.quality === "string" ? input.quality : undefined) || settings.quality;
|
||||
if (quality) payload.quality = quality;
|
||||
if (settings.resolution) payload.resolution = settings.resolution;
|
||||
assignSize(payload, input);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user