removed trailing slash

This commit is contained in:
2025-06-05 18:06:13 -05:00
committed by GitHub
parent 61fe33e1c4
commit 0b9e119361
+1 -1
View File
@@ -245,7 +245,7 @@ class OpenAICompatibleInferenceBot(InferenceBot):
module_name = f'tools.{filename[:-3]}' module_name = f'tools.{filename[:-3]}'
try: try:
module = importlib.import_module(module_name) module = importlib.import_module(module_name)
for name, obj in inspect.getmembers(module):\ for name, obj in inspect.getmembers(module):
if inspect.isclass(obj) and issubclass(obj, BaseTool) and obj != BaseTool: if inspect.isclass(obj) and issubclass(obj, BaseTool) and obj != BaseTool:
try: try:
tools.append(obj()) # This instantiation might be an issue for tools needing config tools.append(obj()) # This instantiation might be an issue for tools needing config