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": "Salsa", "description": "This fresh salsa, reminiscent of the type you might find at authentic Mexican restaurants, can be made as hot as you like it.", "subtitle": "Fresh and zesty salsa reminiscent of authentic Mexican restaurants", "ingredients": [ { "section": "For the recipe", "ingredients": [ "2 pounds (908 g) tomatoes, cored (about 5 medium tomatoes)", "1 medium chile pepper, seeded and diced", "1 small green bell pepper, seeded and diced", "1 small onion, peeled and diced", "¼ cup (60 ml) roughly chopped fresh cilantro", "3 garlic cloves", "¼ cup (60 ml) fresh lime juice", "½ teaspoon salt" ] } ], "instructions": [ "Quarter the tomatoes. Remove some of the seeds and drain excess liquid.", "Dice half of the tomatoes and combine them with the peppers and onions in a large bowl.", "Place the cilantro and garlic in a food processor or high-speed blender and process on medium-high for 30 seconds. Add the remaining tomatoes and pulse until the mixture is chunky. If the tomatoes are very juicy, you may need to drain some of the liquid.", "Combine the salsa with the vegetable mixture. Stir in the lime juice. Add salt to taste. Cover leftovers and refrigerate for up to 2 days." ], "author": "" }
- Assistantjson
{ "data": "MX" }