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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user