From dbe4b2126c7490312b04888771d3870192bb70a1 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 18 Feb 2025 00:51:02 +0100 Subject: [PATCH] fixed a bug --- lollms/server/endpoints/lollms_function_calls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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