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)