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": "Prawn Jalfrezi", "description": "Typically made with chilli, tomatoes and onions among other ingredients, a jalfrezi is considered to be a hot and spicy thick sauce rather than a full-on curry. I guess you could call it an Indian stir-fry and it's so easy to prepare and cook. Jalfrezi can be made with only vegetables, or with chicken too, but it's ever so quick with prawns. Serve with Naan (see pages 130-1), Roti (see pages 126-7) or Basmati Rice (see page 132).", "subtitle": null, "ingredients": [ { "section": "For the recipe", "ingredients": [ "3 tablespoons oil", "1 large onion, finely chopped", "50g tinned chopped tomatoes", "½ red pepper, cut into chunks", "½ green pepper, cut into chunks", "1 large red onion, cut into 2-3cm chunks", "1 teaspoon garlic paste", "1 teaspoon chilli flakes", "1 teaspoon chilli powder", "1 teaspoon ground turmeric", "1 teaspoon ground cumin", "500g raw peeled king prawns", "½ teaspoon salt", "50ml water", "1 teaspoon lemon juice" ] }, { "section": "GARNISH", "ingredients": [ "1 spring onion, finely chopped", "sliced red chilli" ] } ], "instructions": [ "Heat a wok on a low heat, add the oil and chopped onion and sauté for about 3 minutes until translucent.", "Blitz the tomatoes in a food processor until smooth, then add to the wok with the red and green peppers and red onion.", "Add the garlic paste, chilli flakes, chilli powder, turmeric and cumin and cook the spices for about a minute.", "Stir in the prawns, salt, water and lemon juice, cover and cook for 10-12 minutes until cooked through.", "Garnish with spring onion, coriander and red chilli before serving." ], "author": null }
- Assistantjson
{ "data": "IN" }