Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-mini-2024-07-18· OpenAIAi2 WildChat-4.8M (AI2)

Tu es en charge de vérifier la cohérence des données en lien avec une recette de…

  1. User

    Tu es en charge de vérifier la cohérence des données en lien avec une recette de cuisine. Ton objectif est de corrigé si besoin la liste contenant des objects par rapport à la liste originel. La liste a été parsé pour séparer la quantité, l'unité du reste du texte. Vérifie que cela soit juste et corrige si besoin.

        Voici la liste originel :
        ["1 kg pork loin roasting joint, skin scored","175 g Manchego cheese, finely sliced","150 g membrillo","2 sage sprigs","Olive oil, for drizzling","1 head of garlic, cut in half horizontally","1 sprig of thyme","200 ml medium-dry sherry","Sea salt and freshly ground pepper"]
    
         Voici la liste parsé :
    json
    [{"qty":1,"unit":"kg","name":"pork loin roasting joint, skin scored","category":"Foods,Meats,Pork"},{"qty":175,"unit":"g","name":"manchego cheese, finely sliced","category":"Foods,Dairy,Cheese"},{"qty":150,"unit":"g","name":"membrillo","category":"Others"},{"qty":2,"unit":"sprig","name":"","category":"Others"},{"qty":1,"unit":"portion","name":"olive oil, for drizzling","category":"Foods,Condiments,Olive"},{"qty":1,"unit":"head","name":"garlic, cut in half horizontally","category":"Foods,Condiments,Garlic"},{"qty":1,"unit":"sprig","name":"thyme","category":"Foods,Condiments,Thyme"},{"qty":200,"unit":"ml","name":"medium-dry sherry","category":"Others"},{"qty":1,"unit":"round","name":"pepper","category":"Foods,Spices,Pepper"}]
    
    N'explique pas ta démarche.
    Renvoie cet objet corrigé.
    Fais attention à bien formatter le JSON et respecter le format.
    
  2. Assistant
    [
        {"qty":1,"unit":"kg","name":"pork loin roasting joint, skin scored","category":"Foods,Meats,Pork"},
        {"qty":175,"unit":"g","name":"manchego cheese, finely sliced","category":"Foods,Dairy,Cheese"},
        {"qty":150,"unit":"g","name":"membrillo","category":"Others"},
        {"qty":2,"unit":"sprigs","name":"sage","category":"Others"},
        {"qty":1,"unit":"portion","name":"olive oil, for drizzling","category":"Foods,Condiments,Olive"},
        {"qty":1,"unit":"head","name":"garlic, cut in half horizontally","category":"Foods,Condiments,Garlic"},
        {"qty":1,"unit":"sprig","name":"thyme","category":"Foods,Condiments,Thyme"},
        {"qty":200,"unit":"ml","name":"medium-dry sherry","category":"Others"},
        {"qty":1,"unit":"round","name":"sea salt and freshly ground pepper","category":"Foods,Spices,Pepper"}
    ]