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": "Mussels with Clams and Chorizo", "description": null, "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "500g mussels", "500g clams", "200g chorizo", "dry sherry", "1 tablespoon of oil" ] }, { "section": "Sweet mussels, crisp smoked bacon", "ingredients": [ "200g smoked bacon", "750g small, sweet mussels in their shells", "a glass of vermouth, such as Noilly Prat", "a handful of chopped flat-leaf parsley" ] }, { "section": "Mackerel wrapped in bacon", "ingredients": [ "fillets of fresh mackerel", "black pepper", "smoked streaky bacon", "salad of thinly sliced fennel, dill and lemon juice" ] }, { "section": "Pancetta, salmon, crisp baguette", "ingredients": [ "thin slices of pancetta", "chunks of cold cooked salmon", "crisp baguette", "mayonnaise", "lemon juice" ] } ], "instructions": [ "Wash 500g mussels and 500g clams, discarding any with cracked or broken shells, any that seem lifeless or exceptionally light, and any open ones that refuse to close when tapped on the side of the kitchen sink.", "Tug off any wiry beards from the mussels and knock off any barnacles with the back of a knife.", "Remove the skin from 200g chorizo and slice or tear it into small chunks.", "Get a wok or frying pan very hot, add a tablespoon of oil, then add the chorizo and let it colour lightly, tossing it around the pan so it doesn't burn.", "Pour in a glass of dry sherry and let it boil briefly (you need the flavour, not the alcohol), then put the washed mussels and clams into the pan and let them cook for a minute or two, till the shells open, discarding any that stubbornly refuse to open.", "Season lightly.", "Serve immediately, with the juices and some bread for mopping them up." ], "author": null }
- Assistantjson
{ "data": "ES" }