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": "Leek Soup from the Movie Bridget Jones's Diary", "description": "Our adorable and beautiful Bridget Jones is an amazing news anchor, but boy she can't cook! She desperately wants to impress her friends by trying her hand at this leek soup, but her plans go awry when she leaves a piece of blue twine in the boiling pot to accidently turn the soup into "blue leek soup". Enjoy this warm soup!", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "10 medium leeks (white and light-green parts only), sliced and rinsed thoroughly", "1/4 cup all-purpose flour", "1/4 cup (½½ stick) unsalted butter", "1 tablespoon chopped tarragon", "Salt and pepper to taste", "1 quart low-sodium chicken broth", "1 cup water" ] } ], "instructions": [ "1. Slice the leeks to make about 8 cups. Melt the butter in a saucepan over medium high heat.", "2. Stir in the leeks and stir-cook for 6-8 minutes to soften. Add the flour and stir-cook for 1 minute.", "3. Add the water and broth and bring to a boil.", "4. Simmer the mixture over low heat for about 10 minutes, whisking periodically.", "5. Add the tarragon and combine well.", "6. Transfer the mixture to a blender and puree it.", "7. Return the soup to the saucepan and heat again. Season with salt and pepper.", "8. Serve warm." ], "author": null }
- Assistant
{ "data": "GB" }