diff --git a/lollms/server/endpoints/lollms_function_calls.py b/lollms/server/endpoints/lollms_function_calls.py index 6141829..44c696f 100644 --- a/lollms/server/endpoints/lollms_function_calls.py +++ b/lollms/server/endpoints/lollms_function_calls.py @@ -169,8 +169,8 @@ async def unmount_function_call(request: Request): # Find and update the function call found = False for fc in lollmsElfServer.config.mounted_function_calls: - if fc["name"] == function_name and fc["mounted"]: - fc["mounted"] = False + if fc["name"] == function_name: + lollmsElfServer.config.mounted_function_calls.remove(fc) found = True break