fix: Add Glengyle distillery (producer of Kilkerran)

Glengyle is the actual distillery name, Kilkerran is the brand.
AI returns 'Glengyle' which was being mismatched to 'Glenglassaugh'.
This commit is contained in:
2025-12-26 22:34:49 +01:00
parent e3d61af40a
commit 1017ec2c57
2 changed files with 7 additions and 1 deletions

View File

@@ -257,12 +257,14 @@ export async function analyzeLabelWithGemini(imageBase64: string): Promise<Gemin
// ========================================
// NORMALIZE DISTILLERY NAME
// ========================================
console.log(`[Vision] 🔍 RAW FROM AI: name="${validatedData.name}", distillery="${validatedData.distillery}"`);
const normalized = normalizeWhiskyData(
validatedData.name || '',
validatedData.distillery || ''
);
// Apply normalized values
console.log(`[Vision] ✅ AFTER FUSE: name="${normalized.name}", distillery="${normalized.distillery}", matched=${normalized.distilleryMatched}`);
const finalData = {
...validatedData,
name: normalized.name || validatedData.name,