Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal Objectif est d'identifier l'origine d'une recette de cuisine et de retourner un code correspondant dans un format JSON structuré.
code1. Recherche d’un pays mentionné dans la recette et extraction de son code ISO 3166-1 alpha-2. 2. Détermination de l’origine culinaire du pays si aucun pays n'est explicitement mentionné. 3. Identification d’un continent si aucun pays ne peut être déterminé. 4. Retour du code WWW si l’origine ne peut être définie. Return Format Renvoies un objet JSON structuré comme suit : json { "data": "<code>" } - Si un pays est mentionné, utilise son code ISO 3166-1 alpha-2 (ex. : FR pour la France). - Si aucun pays n'est trouvé, renvoie un code de continent parmi : WAF (Afrique) WAS (Asie) WEU (Europe) WNA (Amérique du Nord) WSA (Amérique du Sud) WOC (Océanie) - Si aucune information ne permet de déterminer une origine, renvoie WWW. Warnings - Respecte l’ordre de priorité : pays → continent → code WWW. - Le code ISO 3166-1 alpha-2 doit être exact et valide si un pays est identifié. - Le format du JSON doit être strictement respecté et bien formatté. - Ne fais aucune supposition infondée sur l’origine de la recette. Context Dump Données de la recette fournies : json {"title": "Fragrant Milk Pudding with Pistachios", "description": "Mhalabiyeh is basically a Palestinian version of panna cotta, but lighter and easier to make. Mastic is the most traditional flavor for this dessert, but you can replace it with 1 teaspoon of rosewater or orange blossom water or 1/2 teaspoon of each, just before removing from the heat. As for the toppings, the possibilities are endless.", "subtitle": "Mhalabiyeh", "ingredients": [ { "section": "For the recipe", "ingredients": [ "4 cups (1% pints/1 liter) whole (full-fat) milk", "1 cup (8 fl oz/250 ml) heavy (double) cream", "3/4 cup (4 oz/120 g) granulated sugar", "¾ cup (3 oz/80 g) cornstarch (cornflour)", "3-4 pieces mastic" ] }, { "section": "To serve", "ingredients": [ "coarsely ground pistachios", "desiccated coconut", "flaked almonds", "pomegranate seeds" ] } ], "instructions": [ "Put three-quarters of the milk, the cream, and the sugar into a large, heavy pan and place over medium heat until it just begins to simmer.", "In the meantime, mix the remaining milk and cornstarch (cornflour) in a small bowl or measuring pitcher (jug) until fully dissolved.", "With a pestle and mortar, grind the mastic pieces with a pinch of sugar, then add to the milk and cornstarch mixture.", "When the milk and cream are on the verge of coming to a boil, pour in the milk and cornstarch mixture, whisking continuously until the mixture thickens, about 2 minutes.", "Remove from the heat and pour into very small dessert bowls or glass tumblers or mini jars.", "Refrigerate for at least 4 hours and preferably overnight.", "Garnish with your chosen toppings and serve." ], "author": "" }
- Assistantjson
{ "data": "PS" }