diff --git a/app/api/canvas/local-edit/route.ts b/app/api/canvas/local-edit/route.ts index b24303720..0aaabcf42 100644 --- a/app/api/canvas/local-edit/route.ts +++ b/app/api/canvas/local-edit/route.ts @@ -430,9 +430,9 @@ function resolveScaleAdjustPreferredModelId(params: { ) ); if (params.preferMaskCapableGpt) { - const maskCapableGptImage2 = gptImage2Candidates.filter( - isScaleAdjustMaskCapableModel - ); + const maskCapableGptImage2 = gptImage2Candidates + .filter(isScaleAdjustMaskCapableModel) + .filter((entry) => entry.model.healthStatus === "healthy"); if (maskCapableGptImage2[0]) { return maskCapableGptImage2[0].model.id; } @@ -4190,7 +4190,7 @@ export async function POST(request: NextRequest) { ? scaleAdjustPatchReference ? scaleAdjustPatchReference.structureLockedDraft ? "ai-patch-workspace-structure-locked-draft-v85-one-shot" - : "ai-patch-workspace-draft-v73-rmbg-cutout-soft-wipe-one-shot" + : "ai-patch-workspace-draft-v75-soft-wipe-erase-ghost-one-shot" : useScaleAdjustEditMask ? "mask-edit-gpt-image-2-scale-shrink-v74-one-shot" : useFalScaleAdjustCoordinatePrompt