Guest User

Untitled

a guest
Mar 17th, 2025
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. ParsedChatCompletion[FoodDiaryEntry](
  2. id="chatcmpl-BCHSWiAXnrcI0gU2HuXCNLFkaR5Ah",
  3. choices=[
  4. ParsedChoice[FoodDiaryEntry](
  5. finish_reason="stop",
  6. index=0,
  7. logprobs=None,
  8. message=ParsedChatCompletionMessage[FoodDiaryEntry](
  9. content='{"food_diary_entries":[{"dishes":[{"food":"chicken soup","ingredients":["chicken","vegetable broth","onion","carrots","celery","garlic","salt","pepper"],"ingredient_amount":[1.5,4,1,2,1,2,0.5,0.5],"ingredient_unit":["cups","cups","medium","medium","stalks","cloves","teaspoons","teaspoons"]},{"food":"sourdough bread","ingredients":["sourdough starter","flour","water","salt"],"ingredient_amount":[0.5,2,0.25,0.05],"ingredient_unit":["loaf","cups","cups","teaspoons"]},{"food":"fruit bowl","ingredients":["mixed fruits"],"ingredient_amount":[1],"ingredient_unit":["cup"]}]}]}',
  10. refusal=None,
  11. role="assistant",
  12. audio=None,
  13. function_call=None,
  14. tool_calls=None,
  15. parsed=FoodDiaryEntry(
  16. food_diary_entries=[
  17. FoodDiaryEntryDetails(
  18. dishes=[
  19. DishDetails(
  20. food="chicken soup",
  21. ingredients=[
  22. "chicken",
  23. "vegetable broth",
  24. "onion",
  25. "carrots",
  26. "celery",
  27. "garlic",
  28. "salt",
  29. "pepper",
  30. ],
  31. ingredient_amount=[
  32. 1.5,
  33. 4.0,
  34. 1.0,
  35. 2.0,
  36. 1.0,
  37. 2.0,
  38. 0.5,
  39. 0.5,
  40. ],
  41. ingredient_unit=[
  42. "cups",
  43. "cups",
  44. "medium",
  45. "medium",
  46. "stalks",
  47. "cloves",
  48. "teaspoons",
  49. "teaspoons",
  50. ],
  51. ),
  52. DishDetails(
  53. food="sourdough bread",
  54. ingredients=[
  55. "sourdough starter",
  56. "flour",
  57. "water",
  58. "salt",
  59. ],
  60. ingredient_amount=[0.5, 2.0, 0.25, 0.05],
  61. ingredient_unit=[
  62. "loaf",
  63. "cups",
  64. "cups",
  65. "teaspoons",
  66. ],
  67. ),
  68. DishDetails(
  69. food="fruit bowl",
  70. ingredients=["mixed fruits"],
  71. ingredient_amount=[1.0],
  72. ingredient_unit=["cup"],
  73. ),
  74. ]
  75. )
  76. ]
  77. ),
  78. annotations=[],
  79. ),
  80. )
  81. ],
  82. created=1742266748,
  83. model="gpt-4o-mini-2024-07-18",
  84. object="chat.completion",
  85. service_tier="default",
  86. system_fingerprint="fp_3267753c5d",
  87. usage=CompletionUsage(
  88. completion_tokens=175,
  89. prompt_tokens=406,
  90. total_tokens=581,
  91. completion_tokens_details=CompletionTokensDetails(
  92. accepted_prediction_tokens=0,
  93. audio_tokens=0,
  94. reasoning_tokens=0,
  95. rejected_prediction_tokens=0,
  96. ),
  97. prompt_tokens_details=PromptTokensDetails(audio_tokens=0, cached_tokens=0),
  98. ),
  99. )
  100.  
Add Comment
Please, Sign In to add comment