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": "Chocolate Magic Cake", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "2/3 cup unsweetened cocoa powder", "1/3 cup all-purpose flour", "2 teaspoons instant espresso powder", "3/4 teaspoon sea salt", "4 large eggs eggs at room temperature, separated", "1 cup white sugar", "1 tablespoon water", "½ cup unsalted butter, melted", "2 teaspoons vanilla extract", "2 cups whole milk, lukewarm", "1 teaspoon cream of tartar" ] } ], "instructions": [ "Preheat oven to 325 degrees F (165 degrees C). Grease an 8-inch baking pan.", "Whisk cocoa powder, flour, espresso powder, and salt together in a bowl.", "Combine egg yolks, white sugar, and water in the bowl of a stand mixer. Beat on high speed until eggs are light and creamy, about 2 minutes. Reduce speed to low and add butter and vanilla extract. Increase speed to medium; beat until light and fluffy, about 1 minute. Reduce speed to low and add the cocoa mixture in 3 batches, mixing thoroughly after each addition and scraping down the sides of the bowl. Stir milk slowly into the batter until well combined. Pour chocolate batter into a separate bowl.", "Clean and dry out bowl and beaters. Beat egg whites and cream of tartar together on high speed until stiff peaks form. Fold 3/4 of the egg white mixture into the chocolate batter using a spatula; pour back into the egg white bowl, folding mixture in slowly until batter is smooth but still light and fluffy. Pour batter into the prepared pan.", "Bake in the preheated oven until edges are set and center still jiggles slightly, about 50 minutes. Let cake cool completely, at least 30 minutes." ], "author": null }
- Assistantjson
{ "data": "WWW" }