diff --git a/lollms/server/endpoints/lollms_function_calls.py b/lollms/server/endpoints/lollms_function_calls.py index b97f333..6141829 100644 --- a/lollms/server/endpoints/lollms_function_calls.py +++ b/lollms/server/endpoints/lollms_function_calls.py @@ -197,8 +197,8 @@ async def toggle_function_call(request: Request): # Add new entry for entry in lollmsElfServer.config.mounted_function_calls: - if entry.name == function_name and entry.dir == str(fn_dir): - entry.selected = not entry.selected + if entry["name"] == function_name and entry["dir"] == str(fn_dir): + entry["selected"] = not entry["selected"] lollmsElfServer.config.save_config() return {"status": True, "message": "Function mounted successfully"} \ No newline at end of file