gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
Tu es en charge de formatter des données de textes en une liste d'object précises. Les…
- User
Tu es en charge de formatter des données de textes en une liste d'object précises. Les données concernent une recette de cuisine.
1. Sépare la quantité, l'unité, et le détails de l'ingredient. 2. Fais le mapping de l'object. 3. Fais attention à conservé les détails supplémentaire pour l'ingredients. Ce qui a entre parenthèse par exemple. 4. Trouves la bonne catégorie parmis cette liste: Dairy,Meats,Cereals,Seeds,Chocolats,Spices,Fishs,Pasta,Seafoods,Vegetables,Fruits,Legumes,Eggs,Condiments,Sweets,Unclassifiable Voici les ingredients à traiter: 500 g of dry attiéké (cassava couscous); 45 cl of boiling water; 1/2 teaspoon of salt; 5 bunches of parsley; 1 small bunch of basil; 1 small bunch of coriander (optional); 1 small bunch of chives; 1/2 tomato; 1/2 green bell pepper; 1/2 yellow bell pepper; 1/2 red onion; 2 tablespoons of olive oil; 2 tablespoons of lemon juice; 1 teaspoon of black seed json { name: string, unit: string, qty: number, category: "<category>" } N'explique pas ta démarche. Renvoie une seule liste avec les object dedans. Fais attention à bien formatter le JSON. - Assistant
[ { "name": "dry attiéké", "unit": "g", "qty": 500, "category": "Cereals" }, { "name": "boiling water", "unit": "cl", "qty": 45, "category": "Unclassifiable" }, { "name": "salt", "unit": "teaspoon", "qty": 0.5, "category": "Spices" }, { "name": "parsley", "unit": "bunches", "qty": 5, "category": "Vegetables" }, { "name": "basil", "unit": "bunch", "qty": 1, "category": "Vegetables" }, { "name": "coriander", "unit": "bunch", "qty": 1, "category": "Vegetables" }, { "name": "chives", "unit": "bunch", "qty": 1, "category": "Vegetables" }, { "name": "tomato", "unit": "", "qty": 0.5, "category": "Vegetables" }, { "name": "green bell pepper", "unit": "", "qty": 0.5, "category": "Vegetables" }, { "name": "yellow bell pepper", "unit": "", "qty": 0.5, "category": "Vegetables" }, { "name": "red onion", "unit": "", "qty": 0.5, "category": "Vegetables" }, { "name": "olive oil", "unit": "tablespoons", "qty": 2, "category": "Condiments" }, { "name": "lemon juice", "unit": "tablespoons", "qty": 2, "category": "Condiments" }, { "name": "black seed", "unit": "teaspoon", "qty": 1, "category": "Spices" } ]