mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
fix
This commit is contained in:
parent
bbdfcd18e1
commit
0d07d10bd8
1 changed files with 2 additions and 1 deletions
|
|
@ -120,6 +120,7 @@ async def delete_memory_by_id(memory_id: str, user=Depends(get_verified_user)):
|
|||
collection = CHROMA_CLIENT.get_or_create_collection(
|
||||
name=f"user-memory-{user.id}"
|
||||
)
|
||||
collection.delete_document(memory_id)
|
||||
collection.delete(ids=[memory_id])
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue