refac: profile_image_url optimization

This commit is contained in:
Timothy Jaeryang Baek committed 2025-11-20 20:43:59 -05:00
1 parent cd30152c83
commit 6442871947
28 files changed
+56 -97

No files matched your search

+4
View File
@@ -1454,6 +1454,10 @@ async def get_models(
if "pipeline" in model and model["pipeline"].get("type", None) == "filter":
continue
# Remove profile image URL to reduce payload size
if model.get("info", {}).get("meta", {}).get("profile_image_url"):
model["info"]["meta"].pop("profile_image_url", None)
try:
model_tags = [
tag.get("name")