This commit is contained in:
Timothy Jaeryang Baek 2025-11-23 16:08:03 -05:00
parent f5809165d7
commit 682013cee3

View file

@ -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]