removed trailing slash
This commit is contained in:
@@ -245,7 +245,7 @@ class OpenAICompatibleInferenceBot(InferenceBot):
|
||||
module_name = f'tools.{filename[:-3]}'
|
||||
try:
|
||||
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:
|
||||
try:
|
||||
tools.append(obj()) # This instantiation might be an issue for tools needing config
|
||||
|
||||
Reference in New Issue
Block a user