mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
refac
This commit is contained in:
@@ -107,8 +107,9 @@ async def get_model_tags(user=Depends(get_verified_user)):
|
||||
|
||||
tags_set = set()
|
||||
for model in models:
|
||||
if model.meta and model.meta.get("tags"):
|
||||
for tag in model.meta.get("tags"):
|
||||
if model.meta:
|
||||
meta = model.meta.model_dump()
|
||||
for tag in meta.get("tags", []):
|
||||
tags_set.add((tag.get("name")))
|
||||
|
||||
tags = [tag for tag in tags_set]
|
||||
|
||||
Reference in New Issue
Block a user