From 6327fd6cf1cde9e4436529f0517d4ccd4f3a41bb Mon Sep 17 00:00:00 2001 From: clucraft Date: Sat, 24 Jan 2026 19:23:04 -0500 Subject: [PATCH] Skip AI verification when multiple price candidates exist When the scraper finds multiple valid prices (e.g., Amazon main price + other sellers), skip AI verification entirely. AI was "correcting" valid alternative prices to the main buy box price. Now with multiple candidates, users see all options in the modal and choose themselves - no AI interference. Co-Authored-By: Claude Opus 4.5 --- backend/src/services/scraper.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/services/scraper.ts b/backend/src/services/scraper.ts index 5bc472e..d9de0b7 100644 --- a/backend/src/services/scraper.ts +++ b/backend/src/services/scraper.ts @@ -1637,7 +1637,10 @@ export async function scrapeProductWithVoting( } // If we have a price but AI is available, verify it - if (result.price && userId && html && !result.aiStatus) { + // SKIP verification if we have multiple candidates - let user choose from modal instead + // This prevents AI from "correcting" valid alternative prices (e.g., other sellers on Amazon) + const hasMultipleCandidates = allCandidates.length > 1; + if (result.price && userId && html && !result.aiStatus && !hasMultipleCandidates) { try { const { tryAIVerification } = await import('./ai-extractor'); const verifyResult = await tryAIVerification(