feat(ai): pass quality tier through Node outpaint bridge

Add optional tier field to OutpaintOptions interface and forward it as
the 7th argument to the Python outpaint script, defaulting to balanced.
This commit is contained in:
SnapOtter
2026-05-13 15:46:02 +08:00
parent 55e544317c
commit cc2c182e67
+2
View File
@@ -8,6 +8,7 @@ export interface OutpaintOptions {
extendRight: number;
extendBottom: number;
extendLeft: number;
tier?: "fast" | "balanced" | "high";
}
export async function outpaint(
@@ -31,6 +32,7 @@ export async function outpaint(
String(options.extendRight),
String(options.extendBottom),
String(options.extendLeft),
options.tier ?? "balanced",
],
{ onProgress },
);