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": "VEGETABLE MAFE", "description": "Mafe, or tiga dégué, is one of the most well-known West African dishes. I find it addictive, and if you've already eaten it, I'm sure you know what I mean.\nLike all traditional African dishes, there are many different recipes. Don't hesitate to make it in large batches. It's even better reheated the next day.\nIt can also be eaten with white rice.", "subtitle": "Malian Peanut Stew", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 tablespoons argan oil (or other vegetable oil)", "2 onions, minced", "4 garlic cloves, minced", "1 teaspoon grated ginger", "1 cup (260 g) canned crushed tomatoes", "2 vegetable stock cubes, crumbled", "¼ cup (195 g) peanut butter", "3 African eggplants or 1 small Italian eggplant, peeled and chopped", "1 sweet potato, peeled and chopped", "green cabbage, chopped", "3 carrots, peeled and diced", "2 turnips, peeled and chopped", "1 habanero chile pepper or small sweet pepper", "12 okra, trimmed and chopped", "Chopped peanuts (optional)", "Salt", "Black pepper" ] } ], "instructions": [ "1. Heat the oil in a large pot over medium heat. Add the onion, garlic, and ginger, and cook until the onion is translucent, 5 minutes. Stir in the tomato paste and stock cubes, then add 6 cups (1.5 L) water and simmer over low heat for 10 minutes.", "2. Add the peanut butter and stir until it is fully incorporated. Add the eggplants, sweet potato, cabbage, carrots, turnips, and habanero. Stir carefully to avoid crushing the habanero.", "3. Reduce the heat to low, cover, and cook until thickened, 1 hour.", "4. Add the okra, season with salt and pepper, and stir. Cook until the vegetables are soft, 30 minutes.", "5. Remove the chile pepper, sprinkle with peanuts if desired, and serve." ], "author": "" }
- Assistantjson
{ "data": "ML" }