mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-13 22:02:56 +00:00
done
This commit is contained in:
parent
b509284460
commit
42ea55c4ed
@ -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"}
|
Loading…
x
Reference in New Issue
Block a user