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": "YAM AKPESSI", "description": "Akpessi is an Ivorian eggplant-based dish traditionally made with smoked fish. Here is my delicious vegan version. You can eat it with plantains, yam, or cassava.", "subtitle": "Ivorian Eggplant and Yam", "ingredients": [ { "section": "For the recipe", "ingredients": [ "12 African or 2 Italian eggplants, peeled and chopped", "2 tomatoes", "1 small sweet red pepper or habanero chile pepper", "2 yellow onions", "2 garlic cloves", "2 tablespoons vegetable oil", "1 teaspoon grated ginger", "2 tablespoons tomato paste", "1 vegetable stock cube, crumbled", "1 yam, peeled and chopped", "Salt", "Black pepper" ] } ], "instructions": [ "Bring a large pot of water to a boil. Add the eggplants and cook them until tender, 15 minutes.", "Slice a shallow "X" into the bottom of each tomato. When the eggplants have been cooking for 5 minutes, add the tomatoes and cook them for the remaining 10 minutes. Strain the eggplants and tomatoes and let cool.", "Peel and chop the tomatoes, then place the tomatoes, eggplants, and red pepper in a food processor and purée until smooth. Transfer to a bowl.", "Cut the first onion in chunks. Place it and the garlic in the food processor and purée until smooth. Chop the second onion.", "Heat the oil in a large pot over medium heat and add the minced onion. Cook until softened, about 5 minutes. Add the eggplant purée, onion purée, ginger, tomato paste, stock cube, and ½ cup (120 ml) water. Stir, reduce the heat to low, and simmer, stirring occasionally, until thickened, 20 minutes.", "Meanwhile, place the yam in a large pot and cover with water. Season with salt, bring to a boil, and cook until easily pierced with a fork, 20 minutes.", "Season the stew with salt and pepper to taste. Serve with the boiled yam on the side." ], "author": null }
- Assistantjson
{ "data": "CI" }