-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchatlogs.txt
19 lines (10 loc) · 6.93 KB
/
chatlogs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
heroku logs --tail --app tranquil-waters-32759
2024-01-07T13:44:04.452623+00:00 app[web.1]: {'id': 'chatcmpl-8eNjNGfFxieWb4kg8BoyjPYGE9H0e', 'object': 'chat.completion', 'created': 1704635033, 'model': 'gpt-4-1106-vision-preview', 'usage': {'prompt_tokens': 308, 'completion_tokens': 495, 'total_tokens': 803}, 'choices': [{'message': {'role': 'assistant', 'content': 'I\'m sorry, but I\'m unable to identify or make assumptions about specific ingredients and their amounts just from an image of a prepared dish. To create a recipe, I would need a clear list of ingredients or a more detailed description of the dish\'s contents. However, I can propose a generic recipe template based on typical ingredients that might appear in a stir-fried chicken dish. You could adjust the ingredients and instructions based on the contents of the actual dish to create your final recipe.\n\n```json\n[\n {\n "title": "Stir-Fried Chicken with Vegetables",\n "shortdescription": "A savory stir-fry with tender chicken and mixed vegetables in a flavorful sauce.",\n "preptime": "30 minutes",\n "ingredients": [\n ["Boneless chicken thighs", "1 lb"],\n ["Soy sauce", "2 tbsp"],\n ["Brown sugar", "1 tbsp"],\n ["Garlic, minced", "2 cloves"],\n ["Ginger, minced", "1 inch piece"],\n ["Mixed vegetables (bell peppers, onions, carrots, etc.)", "2 cups"],\n ["Sesame oil", "1 tbsp"],\n ["Vegetable oil", "2 tbsp"],\n ["Sesame seeds", "1 tsp"],\n ["Green onions, chopped", "for garnish"]\n ],\n "instructions": [\n "Cut the chicken into bite-sized pieces.",\n "Marinate the chicken with 1 tablespoon of soy sauce, brown sugar, minced garlic, and minced ginger for 15 minutes.",\n "Heat vegetable oil in a wok or large frying pan over medium-high heat.",\n "Stir-fry the chicken until cooked through and remove from the pan.",\n "In the same pan, add a little more oil if needed and stir-fry the mixed vegetables until tender-crisp.",\n "Add the chicken back into the pan with the vegetables.",\n "Add the remaining soy sauce and sesame oil, and stir well to combine.",\n "Cook for another 2-3 minutes, or until everything is heated through.",\n "Serve hot, garnished with sesame seeds and chopped green onions."\n ]\n }\n]\n```\n\nPlease replace the ingredients and adjust the instructions as necessary to better fit the exact dish in the image. If you\'re able to provide a list of ingredients that you can identify from the dish, I could help fine-tune the recipe accordingly.'}, 'finish_reason': 'stop', 'index': 0}]}
2024-01-07T13:44:04.452650+00:00 app[web.1]: json decode error
2024-01-07T14:09:06.732088+00:00 app[web.1]: key check
2024-01-07T14:09:09.768650+00:00 app[web.1]: 1
2024-01-07T14:09:33.321427+00:00 app[web.1]: {'id': 'chatcmpl-8eO80NA765ajq9LRmMIf8hh13Zpc2', 'object': 'chat.completion', 'created': 1704636560, 'model': 'gpt-4-1106-vision-preview', 'usage': {'prompt_tokens': 308, 'completion_tokens': 322, 'total_tokens': 630}, 'choices': [{'message': {'role': 'assistant', 'content': '```json\n[{\n "title": "Mixed Seafood Stir Fry",\n "shortdescription": "A quick and flavorful stir fry using a variety of seafood and fresh vegetables.",\n "preptime": "30 minutes",\n "ingredients": [\n ["assorted seafood (shrimp, squid, mussels)", "2 cups"],\n ["mixed bell peppers, sliced", "1 cup"],\n ["onion, sliced", "1"],\n ["garlic cloves, minced", "3"],\n ["soy sauce", "2 tablespoons"],\n ["oyster sauce", "1 tablespoon"],\n ["vegetable oil", "2 tablespoons"],\n ["green onions, chopped", "1/4 cup"],\n ["salt", "to taste"],\n ["pepper", "to taste"]\n ],\n "instructions": [\n "Heat the vegetable oil in a large pan or wok over medium-high heat.",\n "Add the garlic and onion, and stir-fry until the onions are translucent.",\n "Add the mixed seafood and cook until they start to turn opaque, usually around 2-3 minutes.",\n "Toss in the sliced bell peppers and stir-fry for another 2 minutes.",\n "Pour in soy sauce and oyster sauce, stir to coat the ingredients evenly.",\n "Season with salt and pepper, to taste.",\n "Stir-fry everything for another 2-3 minutes or until the seafood is cooked through.",\n "Garnish with green onions before serving.",\n "Serve hot with rice or noodles."\n ]\n}]\n```'}, 'finish_reason': 'stop', 'index': 0}]}
2024-01-07T14:09:37.051430+00:00 app[web.1]: [2024-01-07 14:09:37 +0000] [2] [CRITICAL] WORKER TIMEOUT (pid:7)
2024-01-07T14:09:38.059921+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=POST path="/picture_upload/" host=tranquil-waters-32759-886d8bbdc129.herokuapp.com request_id=4b4aaec3-c663-43bf-ac47-6f6aa561f340 fwd="80.187.71.109" dyno=web.1 connect=0ms service=31329ms status=503 bytes=0 protocol=https
2024-01-09T20:05:11.669233+00:00 app[web.1]: {'id': 'chatcmpl-8fCdIFHjEY5yZMldYGEgzvefAX2zr', 'object': 'chat.completion', 'created': 1704830700, 'model': 'gpt-4-1106-vision-preview', 'usage': {'prompt_tokens': 308, 'completion_tokens': 381, 'total_tokens': 689}, 'choices': [{'message': {'role': 'assistant', 'content': 'Certainly, based on the visible ingredients in the picture, here is a simple recipe in JSON format:\n\n```json\n[\n {\n "title": "Mediterranean Inspired Vegetable Pasta",\n "shortdescription": "A quick and nutritious vegetable pasta dish with a Mediterranean twist.",\n "preptime": "30 minutes",\n "ingredients": [\n ["zucchini", "1 small"],\n ["eggplant", "1 small"],\n ["tomatoes", "3 medium"],\n ["carrot", "1 medium"],\n ["apple", "1, for a fresh side salad"],\n ["banana", "1, for dessert or a smoothie"],\n ["pasta", "200g"]\n ],\n "instructions": [\n "Dice the zucchini, eggplant, and tomatoes into bite-sized pieces.",\n "Peel and slice the carrot into thin rounds.",\n "Bring a pot of salted water to a boil and cook pasta according to package instructions until al dente.",\n "In a large pan, sauté the zucchini and carrot over medium heat until they begin to soften.",\n "Add the eggplant to the pan and continue to cook until all vegetables are tender.",\n "Mix in the tomatoes and cook for an additional 2-3 minutes or until the tomatoes are just starting to break down.",\n "Drain the pasta and add it to the pan with the vegetables, tossing everything to combine.",\n "Serve the pasta warm with a side salad made from slices of fresh apple.",\n "Enjoy a banana for dessert or blend it into a smoothie as a refreshing drink."\n ]\n }\n]\n```\n\nThis recipe offers a simple, healthy meal using the ingredients visible in the image. The quantities of ingredients are estimated, so you might want to adjust them according to your taste and the number of servings you wish to make.'}, 'finish_reason': 'stop', 'index': 0}]}
2024-01-09T20:05:11.669279+00:00 app[web.1]: json decode error