Goal L'objectif est d'identifier l'origine d'une recette de cuisine et de retourner un…
- User
Goal L'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 Tu dois renvoyer 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": "Moe's "Ur So Cheezy" Corn", "description": "THIS IS A PERFECT EXAMPLE of a dish that is extremely simple and extremely delicious. I have been making this for years when I cater and vend. It sells out all the time, and it makes a great pair with my baked beans, too (see see here).", "subtitle": "", "ingredients": [ { "section": "Pour la recette", "ingredients": [ "1 (32-ounce) package frozen corn kernels, thawed", "¼ cup diced cooked bacon", "1 jalapeño pepper, seeded and minced", "2 heaping tablespoons Pork Rub (see recipe, see here)", "1 cup salted butter, at room temperature and cut into large cubes", "1 (8-ounce) block cream cheese, at room temperature and cut into large cubes" ] } ], "instructions": [ "1. Prepare and preheat a grill or smoker to 250°F.", "2. In a bowl, combine corn, bacon, jalapeño, and Pork Rub until blended. Fold in butter and cream cheese. Transfer to a grill-safe metal pan, and cover with foil.", "3. Place pan in smoker; cover and cook for 1 hour. Remove from grill, and stir until cream cheese and butter are melted and mixture is smooth." ], "author": "" }
- Assistantjson
{ "data": "WNA" }