Offers come from the German avis, so add Claude-backed language help, reusing BlaaAi's ANTHROPIC_API_KEY + Haiku pattern. Both degrade gracefully: without a key, offers stay German and the token heuristic still matches. - Translate offer headings DE→DA in the fetch job, cached per heading in a translations table (only new headings cost a call). UI shows Danish primary + German subtitle for in-store navigation. - AI match the fixed list against offers (offer_matches table): Claude returns same-product matches, far more precise than the token heuristic (which false-matched e.g. Nutella jar → advent calendar). load_deals() prefers AI matches, falls back to the heuristic. - Haiku 5.5 by default (MATCH_MODEL/TRANSLATE_MODEL env overridable to Sonnet); no temperature param (Haiku 5.5 rejects non-default). - requirements: add anthropic
40 KiB
40 KiB