From 22b007c2d905a27658c5e88cd2e6a4f0c85dfb46 Mon Sep 17 00:00:00 2001 From: 134 Date: Thu, 2 Jul 2026 16:44:09 +0800 Subject: [PATCH] fix: avoid old crop reference for scale adjust --- app/api/canvas/local-edit/route.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/app/api/canvas/local-edit/route.ts b/app/api/canvas/local-edit/route.ts index cd92370c2..afe8b9042 100644 --- a/app/api/canvas/local-edit/route.ts +++ b/app/api/canvas/local-edit/route.ts @@ -1665,15 +1665,7 @@ export async function POST(request: NextRequest) { annotatedFilename, toArrayBuffer(annotatedBuffer) ); - const scaleAdjustCropReferences = - isScaleAdjustOperation - ? await createScaleAdjustCropReferences({ - regions, - sourceBuffer, - sourceHeight, - sourceWidth, - }) - : []; + const scaleAdjustCropReferences: ScaleAdjustCropReference[] = []; const prompt = isScaleAdjustOperation ? useScaleAdjustCoordinateGuide ? buildScaleAdjustCoordinatePrompt( @@ -1791,8 +1783,8 @@ export async function POST(request: NextRequest) { .length, scaleAdjustPromptStrategy: isScaleAdjustOperation ? useScaleAdjustCoordinateGuide - ? "same-name-locked-source-strong-erasure-semantic-target-map-v37-one-shot" - : "locked-plate-strong-erasure-semantic-target-map-v14" + ? "same-name-locked-source-semantic-target-map-no-old-crop-v38-one-shot" + : "locked-plate-semantic-target-map-no-old-crop-v15" : undefined, scaleAdjustPostCompositeApplied: false, scaleAdjustUsesFullFrameOutput: isScaleAdjustOperation,