From 3e3c57a07f90ceb158d9e9f95a91c0f6e18bcf5c Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Tue, 3 Feb 2026 19:15:49 +0000 Subject: [PATCH] fix(ai): ensure tasting notes are returned in title case Update ROAST_PROMPT to explicitly request tasting notes in Title Case so extracted values like "dark chocolate" come back as "Dark Chocolate". --- src/infrastructure/ai.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrastructure/ai.rs b/src/infrastructure/ai.rs index e856e1a..59d9413 100644 --- a/src/infrastructure/ai.rs +++ b/src/infrastructure/ai.rs @@ -24,7 +24,7 @@ const ROAST_PROMPT: &str = r#"Extract coffee roast information from this input. - "region": the region within the origin country - "producer": the farm, estate, or cooperative that produced the beans - "process": the processing method (e.g. Washed, Natural, Honey, Anaerobic) -- "tasting_notes": an array of flavour/tasting notes (e.g. ["Blueberry", "Jasmine", "Dark Chocolate"]) +- "tasting_notes": an array of flavour/tasting notes in Title Case (e.g. ["Blueberry", "Jasmine", "Dark Chocolate"]) Return ONLY the JSON object, no other text."#;