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é.
1. 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": "Red Red", "description": "The aptly named "Red Red," eaten at all hours of the day, is iconic Ghanaian street food. It takes its name from the red palm oil used in it, but also from the fried plantains which often accompany it. Here, I've replaced the fried plantains with avocado slices.", "subtitle": "Ghanian Red Stew", "ingredients": [ { "section": "For the recipe", "ingredients": [ "7 ounces (200 g) black-eyed peas", "¼ cup (60 ml) red palm oil (or argan oil)", "1 large red onion, minced", "2 garlic cloves, minced", "One 1.5-inch (4 cm) piece of ginger, minced", "1 tablespoon tomato paste", "4 ripe tomatoes, chopped", "2 habanero chile peppers or small sweet peppers", "2 cups (480 ml) vegetable stock", "Sliced avocado", "Flat-leaf parsley sprigs, chopped", "Salt", "Black pepper" ] } ], "instructions": [ "1. Soak the black-eyed peas in hot water for 30 minutes.", "Place the beans in a large pot and cover with water.", "Bring to a boil, reduce to a simmer, and cook until tender, 30 to 40 minutes.", "2. Heat the oil in a frying pan over medium-high heat.", "Add the onion, garlic, and ginger and cook until tender and lightly caramelized, 3 to 4 minutes.", "Stir in the tomato paste, add the tomatoes and habaneros, stir for 1 minute, and cook for 10 minutes.", "3. Add the black-eyed peas and vegetable stock to the pan, reduce the heat to low, and simmer until creamy, 30 minutes.", "4. Season with salt and pepper to taste, then top with avocado and parsley and serve." ], "author": "" }
- Assistant
{ "data": "GH" }