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": "Gin & Tonic Loaf Cake", "description": "An absolutely iconic bake in the cake world is a lemon drizzle cake... and it got me thinking, why does the drizzle have to be lemon?!\nWhy can't we add something else in, such as one of my favourite drinks - a G&T! And oh wow, it worked so much better than I ever\nthought it could and my blog readers agree. The flavour from the drizzle works so well with the lime hinted sponge, and the gin icing\ntopping just finishes it off to perfection!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "250g unsalted butter", "250g caster sugar", "250g self-raising flour", "5 eggs", "Zest of 1 lime" ] }, { "section": "G&T DRIZZLE", "ingredients": [ "75g caster sugar", "5 tbsp gin", "5 tbsp tonic water" ] }, { "section": "DECORATION", "ingredients": [ "200g icing sugar", "3-4 tbsp gin", "Lime slices", "Zest of 1 lime" ] } ], "instructions": [ "Preheat the oven to 180°C/160°C fan and grease and line a 900g loaf tin.", "Beat the butter and caster sugar together in a bowl until light and fluffy.", "Add the self-raising flour, eggs and lime zest to the bowl, and mix again until combined.", "Pour the mixture into the tin and bake for 45-50 minutes, or until baked through.", "Leave the cake to cool in the tin while you make the drizzle.", "Add the caster sugar, gin and tonic water to a small pan and place over a low-medium heat.", "Stir gently until the sugar has dissolved and then turn off the heat.", "Carefully poke holes into the top of the cake with cake skewer or fork, then pour the drizzle over the cake.", "Leave the cake in the tin to cool fully.", "Remove the cooled cake from the tin.", "Put the icing sugar into a bowl and gradually mix in the gin until you reach a thick and pourable consistency.", "Pour the icing over the cake, then finish with some lime slices and a sprinkling of lime zest." ], "author": null }
- Assistantjson
{ "data": "WWW" }