mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
fix
This commit is contained in:
@@ -172,6 +172,7 @@ async def delete_toolkit_by_id(request: Request, id: str, user=Depends(get_admin
|
||||
|
||||
if result:
|
||||
TOOLS = request.app.state.TOOLS
|
||||
del TOOLS[id]
|
||||
if id in TOOLS:
|
||||
del TOOLS[id]
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user