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": "Chocolate Pudding", "description": "chocolate pudding is the ultimate comfort food-smooth, creamy, and chocolaty, of course. Sore throats, bruised knees, and bruised egos will all feel better after a spoonful of this pudding.", "subtitle": "MAKES 2 CUPS (480 ML)", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "3 tablespoons corn starch", "2 cups (480 ml) coconut milk beverage or non-dairy milk of choice, at room temperature", "½ cup (73 g) organic cane sugar", "¼ cup (26 g) natural unsweetened cocoa powder", "½ teaspoon salt", "1 teaspoon Vanilla Extract (page 288)", "¼ cup (60 g) chocolate chips" ] } ], "instructions": [ "Whisk the corn starch and ½ cup (120 ml) of milk together in a small bowl, making sure there are no lumps.", "Combine the sugar, cocoa powder, and salt in a separate medium bowl.", "Warm the remaining milk and vanilla in a medium saucepan over low heat for 2 to 3 minutes. Whisk in the cocoa mixture, stirring until the milk is smooth. Add the chocolate chips and continue heating over low heat, whisking until the chocolate chips are completely melted.", "Increase the heat to medium-high, and bring to a boil, without stirring.", "As soon as the mixture starts to boil, decrease the heat to low, and briskly whisk in the corn starch mixture (from step 1). The pudding will thicken. Continue to heat for 1 minute longer, stirring constantly.", "Let the pudding cool for 15 minutes, then spoon it into four serving cups. Cover the serving cups with plastic wrap, allowing the plastic to sit directly on the pudding (so that it won't create a skin). Refrigerate for at least 2 hours before serving or up to a week." ], "author": "" }
- Assistantjson
{ "data": "WWW" }