From 45e9e3ac4a681630b005e297117a73c7fa9ceab6 Mon Sep 17 00:00:00 2001 From: Justin Lee Date: Wed, 6 Nov 2024 18:30:55 -0800 Subject: [PATCH] removed redundant comments --- docs/zero_to_hero_guide/03_Tool_Calling101.ipynb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb b/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb index 670d3670f..a4d64c81e 100644 --- a/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb +++ b/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb @@ -255,8 +255,8 @@ " for message in messages:\n", " print(\"tool_calls starting: \", message.tool_calls[0])\n", " return_dict = message.tool_calls[0].arguments\n", - " location = return_dict.get(\"location\",None)\n", - " date = return_dict.get(\"date\",None)\n", + " location = return_dict.get(\"location\", None)\n", + " date = return_dict.get(\"date\", None)\n", " print(\"Using Location:\",location)\n", " if date:\n", " print(\"Using date:\",date)\n", @@ -265,11 +265,6 @@ " async def run_impl(self, location: str, date: Optional[str] = None) -> Dict[str, Any]:\n", " \"\"\"Simulate getting weather data (replace with actual API call).\"\"\"\n", " # Mock implementation\n", - " # print(\"\"\" {\n", - " # \"temperature\": 72.5,\n", - " # \"conditions\": \"partly cloudy\",\n", - " # \"humidity\": 65.0\n", - " # }\"\"\")\n", " return [CompletionMessage(\n", " content=\"\"\"{\n", " \"temperature\": 72.5,\n",