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".
This commit is contained in:
Jon Seager 2026-02-03 19:15:49 +00:00
parent 84ffe36afc
commit 3e3c57a07f
No known key found for this signature in database

View file

@ -24,7 +24,7 @@ const ROAST_PROMPT: &str = r#"Extract coffee roast information from this input.
- "region": the region within the origin country - "region": the region within the origin country
- "producer": the farm, estate, or cooperative that produced the beans - "producer": the farm, estate, or cooperative that produced the beans
- "process": the processing method (e.g. Washed, Natural, Honey, Anaerobic) - "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."#; Return ONLY the JSON object, no other text."#;