Fixed typo
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user