From b4c9176a1f97288f637b324b2989d53be933c073 Mon Sep 17 00:00:00 2001 From: Jonathan Lucas Date: Wed, 21 Aug 2024 08:13:37 -0500 Subject: [PATCH] Fixed typo --- base_telegram_inference_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_telegram_inference_bot.py b/base_telegram_inference_bot.py index a9b7b52..204a287 100644 --- a/base_telegram_inference_bot.py +++ b/base_telegram_inference_bot.py @@ -56,7 +56,7 @@ class BaseTelegramInferenceBot(ABC): def call_tool(self, function_call_name, function_call_arguments): function_name = function_call_name - function_args = json.loads(function_call_arguments if function_call_arguments is not None else "{}"). + function_args = json.loads(function_call_arguments if function_call_arguments is not None else "{}") for tool in self.tools: if function_name in [f["name"] for f in tool.get_functions()]: return tool.execute(function_name, **function_args)