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 Web Cake", "description": "", "subtitle": "Yield: 1 -4 layer 9 inch round cake", "ingredients": [ { "section": "For the recipe", "ingredients": [ "1 1/3 cups all-purpose flour", "2 teaspoons baking powder", "1 teaspoon salt", "1/4 teaspoon baking soda", "1 ½ cups white sugar", "½ cup shortening", "1 1/4 cups evaporated milk", "2 large eggs eggs", "2 (1 ounce) squares unsweetened chocolate, melted" ] }, { "section": "For the Filling", "ingredients": [ "2 (1 ounce) squares unsweetened chocolate, melted", "1½ cups shortening", "1 ½ cups white sugar", "3/4 cup evaporated milk", "2 teaspoons vanilla extract" ] } ], "instructions": [ "Preheat oven to 350 degrees F(175 degrees C). Grease two 9 inch round cake pans.", "Sift flour, baking powder, salt, baking soda and 1 1/2 cups of the white sugar together in a large mixing bowl. Add 1/2 cup of the shortening and 1-1/4 cup of the evaporated milk. Beat at medium speed with an electric mixer for 2 minutes. Beat in the eggs and beat for 2 minutes longer. Spread the batter evenly into the prepared pans. Drizzle 1 square of the melted chocolate in a spiral on top of each cake. Feather lines with a knife to form a web pattern.", "Bake at 350 degrees F (175 degrees C) for 30 to 40 minutes or until a toothpick inserted in the center comes out clean. Let cakes cool in pans for 10 minutes then remove from pans and let cakes cool completely.", "To Make Filling: Combine the 2 squares unsweetened melted chocolate, 1 1/3 cups shortening, 1 cup white sugar, 3/4 cup evaporated milk and the vanilla together and beat with an electric mixer until smooth.", "To Assemble Cake: Cut each cooled cake layer in half horizontally. Spread 1/4 of the filling between each layer making a 4 layer cake with a web design on top. Frost sides with the remaining filling." ], "author": "" }
- Assistant
{ "data": "WNA" }