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": "Chocolate Cupcakes with Pumpkin Cheesecake Filling", "description": null, "subtitle": null, "ingredients": [ { "section": "Filling", "ingredients": [ "1 (8 ounce) package cream cheese, at room temperature", "½ cup white sugar", "1 egg", "2 tablespoons 100% pure pumpkin", "6 drops yellow food coloring", "3 drops red food coloring", "½ teaspoon salt", "½ cup semisweet chocolate chips, or more to taste" ] }, { "section": "Cake", "ingredients": [ "1 ½ cups all-purpose flour", "1 cup white sugar", "1/4 cup unsweetened cocoa powder", "1 teaspoon baking soda", "½ teaspoon salt", "½ cup vegetable oil", "1 cup water", "1 teaspoon white vinegar", "1 teaspoon vanilla extract" ] } ], "instructions": [ "Preheat oven to 350 degrees F (175 degrees C). Line a muffin tin with paper liners.", "Place cream cheese, 1/3 cup sugar, egg, pumpkin, yellow food coloring, red food coloring, and salt in a bowl. Beat using an electric mixer until thoroughly combined and no lumps remain. Stir in chocolate chips.", "Whisk flour, 1 cup sugar, cocoa powder, baking soda, and 1/2 teaspoon salt together in a large bowl. Mix in water, oil, vinegar, and vanilla extract until batter is well blended.", "Fill muffin cups 1/2-full with batter; top with 1 tablespoon of the cream cheese mixture. Sprinkle a few chocolate chips on top.", "Bake in the preheated oven until a toothpick inserted into the center comes out clean, about 25 minutes." ], "author": null }
- Assistant
{ "data": "WWW" }