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": "Candy Corn Cupcakes", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 (18.25 ounce) package white cake mix", "1 cup water", "½ cup vegetable oil", "3 large eggs eggs", "14 drops red food coloring, or as needed - divided", "22 drops yellow food coloring, or as needed - divided", "6 drops green food coloring, or as needed", "2 cups prepared white frosting", "12 eaches pieces of yellow, orange, and white candy corn", "12 eaches pieces of brown, orange, and white candy corn" ] } ], "instructions": [ "Preheat oven to 350 degrees F (175 degrees C). Line 24 cupcake cups with paper liners.", "Place cake mix in a bowl, and pour in water and vegetable oil; add 3 eggs. With electric mixer on low speed, beat the cake mix with water, oil, and eggs until thoroughly combined, about 2 minutes. Pour half the cake mix into a second bowl; divide the remaining cake mix in half, and place into 2 separate small bowls.", "Color the largest portion of the cake mix orange by mixing in 4 drops of red food coloring and 6 drops of yellow food coloring. Into a second, smaller bowl of cake mix, mix in 10 drops of red food coloring. 12 drops of yellow food coloring. and 6 drops of green food coloring, to color that bowl brown. Into the last remaining small bowl of cake mix, stir in 5 drops of yellow food coloring to color that bowl yellow.", "Spoon yellow cake batter into the bottoms of 12 prepared cupcake cups, filling them about 1/3 full. Spoon the brown batter into the bottoms of the remaining 12 prepared cupcake cups, filling them about 1/3 full. Spoon orange cupcake mix over the yellow and brown layers, filling the cupcakes about 2/3 full. Try not to jar or shake the filled cupcakes, to avoid mixing layers.", "Carefully place cupcakes into the preheated oven, and bake until a toothpick inserted into the center of a cupcake comes out clean, 18 to 22 minutes. Allow to cool.", "Frost each cooled cupcake with the white frosting; place a piece of yellow, orange, and white candy corn on top of each yellow and orange cupcake. Place a brown, orange, and white piece of candy corn on top of each brown and orange cupcake." ], "author": null }
- Assistantjson
{ "data": "WNA" }