Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
0d07d10b
Commit
0d07d10b
authored
May 19, 2024
by
Timothy J. Baek
Browse files
fix
parent
bbdfcd18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
backend/apps/web/routers/memories.py
backend/apps/web/routers/memories.py
+2
-1
No files found.
backend/apps/web/routers/memories.py
View file @
0d07d10b
...
@@ -120,6 +120,7 @@ async def delete_memory_by_id(memory_id: str, user=Depends(get_verified_user)):
...
@@ -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
(
collection
=
CHROMA_CLIENT
.
get_or_create_collection
(
name
=
f
"user-memory-
{
user
.
id
}
"
name
=
f
"user-memory-
{
user
.
id
}
"
)
)
collection
.
delete
_document
(
memory_id
)
collection
.
delete
(
ids
=
[
memory_id
]
)
return
True
return
True
return
False
return
False
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment