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": "Pineapple Upside-Down Cake", "description": "This recipe for a pineapple upside-down cake surely would have impressed Taeko and her family. 'Only Yesterday' strings together scenes from Taeko's childhood in the city, when she dreamed of escaping to the country. One day, Taeko convinces her father to buy a whole pineapple, but her city-dwelling family has no idea how to eat it! This cake is a delicious way to enjoy this exotic fruit.", "subtitle": "Only Yesterday", "ingredients": [ { "section": "For the cake", "ingredients": [ "6 tablespoons (80 grams) unsalted butter, softened", "1 cup plus 1 tablespoon (230 grams) sugar, divided", "1 tablespoon vanilla extract", "3 eggs", "1 ½ cups (180 grams) flour", "2 teaspoons baking powder", "Pinch of salt", "Splash of rum (optional)" ] }, { "section": "For the caramel", "ingredients": [ "4 tablespoons water", "Dash of lemon juice (optional)", "1 can pineapple slices" ] } ], "instructions": [ "Cream the butter, 6 tablespoons of sugar, and vanilla in a bowl.", "In a separate bowl, beat the eggs, add them into the butter mixture, and stir to combine.", "Slowly sift the flour and baking powder into the mixture while stirring. Add the pinch of salt and the rum, if desired, and beat again.", "Thoroughly grease a cake pan, and then line the bottom with a piece of aluminum foil cut to match the shape. Flatten out the foil, and grease it as well. Preheat the oven to 350°F.", "Prepare the caramel: Dissolve the remaining sugar with the water in a saucepan over low heat, and mix thoroughly. Add the lemon, if desired. When the mixture begins to brown, stir it in large, circular movements.", "Pour the caramel into the cake pan, making sure to cover the entire surface.", "Arrange the pineapple slices atop the caramel. Pour the batter over the top, and smooth the surface.", "Bake for 45 minutes at 350°F. Turn the cake out upside down, and let it cool slightly before serving." ], "author": null }
- Assistant
{ "data": "WWW" }