Skip to content

Commit

Permalink
update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Sep 25, 2024
1 parent 88ab874 commit 1b88e4e
Show file tree
Hide file tree
Showing 5 changed files with 430 additions and 89 deletions.
3 changes: 1 addition & 2 deletions chatlab/views/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from IPython.display import display
from IPython.core.getipython import get_ipython

from jiter import from_json
from jiter import from_json


class ToolArguments(AutoUpdate):
Expand Down Expand Up @@ -193,7 +193,6 @@ def render(self):
return None

try:

Model = extract_model_from_function(self.name, self.custom_render)
# model = Model.model_validate(possible_args)
model = Model(**possible_args)
Expand Down
9 changes: 7 additions & 2 deletions notebooks/cooking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,15 @@
"#### Steps:\n",
"1. **Preheat your oven to 220°C (430°F).**\n",
"2. **Wash the potatoes thoroughly** and pat them dry with a kitchen towel. Prick them all over with a fork to allow steam to escape during cooking. *(Easy)*\n",
"3. **Rub the potatoes with olive oil** and sprinkle them"
"3. **Rub the potatoes with olive oil** and sprinkle them generously with sea salt. This will give them a crispy skin. *(Easy)*\n",
"4. **Place the potatoes directly on the middle shelf of the oven.** If you're worried about the oven getting dirty, you can place a baking sheet on the shelf below to catch any drips. *(Medium)*\n",
"5. **Bake for about 20 minutes,** then reduce the oven temperature to 190°C (375°F) and continue baking for another 60 minutes, or until the potatoes are cooked through and their skin is crispy. *(Medium)*\n",
"6. **Remove the potatoes from the oven** and let them cool for a few minutes. Slice open the top of each potato, fluff up the inside with a fork, and serve with your favorite toppings. *(Easy)*\n",
"\n",
"Enjoy your delicious British Baked Potato!"
],
"text/plain": [
"AssistantMessageView(display_id='d5f77c5d-d19f-4f0b-8d1e-20f4c948da6a', content=\"Here's your British Baked Potato recipe, all set and visually presented:\\n\\n### British Baked Potato\\n\\n#### Ingredients:\\n- 4 Large potatoes\\n- 2 tbsp Olive oil\\n- Sea salt, to taste\\n\\n#### Steps:\\n1. **Preheat your oven to 220°C (430°F).**\\n2. **Wash the potatoes thoroughly** and pat them dry with a kitchen towel. Prick them all over with a fork to allow steam to escape during cooking. *(Easy)*\\n3. **Rub the potatoes with olive oil** and sprinkle them\", finished=False, has_displayed=True)"
"AssistantMessageView(display_id='d5f77c5d-d19f-4f0b-8d1e-20f4c948da6a', content=\"Here's your British Baked Potato recipe, all set and visually presented:\\n\\n### British Baked Potato\\n\\n#### Ingredients:\\n- 4 Large potatoes\\n- 2 tbsp Olive oil\\n- Sea salt, to taste\\n\\n#### Steps:\\n1. **Preheat your oven to 220°C (430°F).**\\n2. **Wash the potatoes thoroughly** and pat them dry with a kitchen towel. Prick them all over with a fork to allow steam to escape during cooking. *(Easy)*\\n3. **Rub the potatoes with olive oil** and sprinkle them generously with sea salt. This will give them a crispy skin. *(Easy)*\\n4. **Place the potatoes directly on the middle shelf of the oven.** If you're worried about the oven getting dirty, you can place a baking sheet on the shelf below to catch any drips. *(Medium)*\\n5. **Bake for about 20 minutes,** then reduce the oven temperature to 190°C (375°F) and continue baking for another 60 minutes, or until the potatoes are cooked through and their skin is crispy. *(Medium)*\\n6. **Remove the potatoes from the oven** and let them cool for a few minutes. Slice open the top of each potato, fluff up the inside with a fork, and serve with your favorite toppings. *(Easy)*\\n\\nEnjoy your delicious British Baked Potato!\", finished=False, has_displayed=True)"
]
},
"metadata": {},
Expand Down
Loading

0 comments on commit 1b88e4e

Please sign in to comment.