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": "Crepes to die for", "description": "A lot of people love crepes as a part of their breakfast, while some love them as an after dessert. Crepes give you that\nhomely feeling after a long day of work. The best part about crepes is that it goes with different kinds of toppings, and\none can choose it according to wish and taste. Remy and Linguini's relationship is just like the sweet and sour toppings\nof crepes. Even when they don't understand each other, they stick together. I would say they go together just like crepes\nand their toppings.", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 cup all-purpose flour.", "2 eggs", "1/2 cup water", "1/4 teaspoon salt", "2 tablespoons melted butter", "Melted chocolate", "Sliced strawberries.", "Banana slices" ] } ], "instructions": [ "In a bowl, mix the flour and eggs.", "Once mixed, slowly add in the water and milk, and mix them well.", "Heat a pan on medium heat, and grease it with oil or butter.", "Pour 1 scoop of batter gently into the pan.", "You can either spread the mix like an Indian dosa or gently tilt the pan in a circular motion.", "The batter must spread out evenly in the pan", "Cook each crepe for about 2 minutes.", "Once it's light brown, flip the crepe to the other side, and let it cook as well.", "When done, place it on a plate, and serve it with sliced strawberries, melted chocolate.", "One can also serve it with some whipped cream and melted chocolate." ], "author": null }
- Assistantjson
{ "data": "FR" }