removed trailing slash
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user