Merge pull request #1636 from open-webui/dev

fix: multiuser duplicate tag issue
This commit is contained in:
Timothy Jaeryang Baek 2024-04-20 19:13:20 -07:00 committed by GitHub
commit d19143dd2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,7 +136,9 @@ class TagTable:
return [
TagModel(**model_to_dict(tag))
for tag in Tag.select().where(Tag.name.in_(tag_names))
for tag in Tag.select()
.where(Tag.user_id == user_id)
.where(Tag.name.in_(tag_names))
]
def get_tags_by_chat_id_and_user_id(