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": "CHAPATI", "description": "Chapati is an unleavened bread of Indian origin. It is eaten in many African countries, such as Burundi, Uganda, Mozambique, and Kenya, and can be paired with almost any dish, savory or sweet.", "subtitle": "East African Flatbread", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 cups (375 g) all-purpose flour, plus more for kneading", "1 teaspoon salt", "3 tablespoons vegetable oil, plus more for brushing", "1½ cup (300 ml) warm water" ] } ], "instructions": [ "Gently mix the flour, salt, and oil together in a large bowl.", "Gradually add the water and mix to form a sticky, soft dough.", "Transfer the dough to a clean, floured work surface.", "Knead until the dough becomes smooth and elastic, 10 to 15 minutes.", "Return the dough to the bowl, cover with plastic wrap, and let sit in a warm place for 20 to 30 minutes.", "Transfer the dough to a floured surface and divide it into 8 equal parts.", "Roll into balls with your hands, then roll each ball with a rolling pin into a very thin, round chapati.", "Heat a nonstick or heavy-bottomed frying pan over high heat.", "Place one chapati in the pan and let it cook undisturbed, for a few seconds.", "Brush the top with a thin layer of oil.", "When bubbles appear on the surface, flip and brush the other side with a thin layer of oil.", "Flip one or two more times until each side is golden brown to your liking.", "Continue cooking the rest of the chapatis until they are all cooked.", "Serve warm." ], "author": null }
- Assistantjson
{ "data": "IN" }