refac: user valves

This commit is contained in:
Timothy Jaeryang Baek
2025-09-26 17:49:42 -05:00
parent 807a8be299
commit b77848244b
8 changed files with 84 additions and 29 deletions
+1
View File
@@ -263,6 +263,7 @@ async def get_all_models(request, refresh: bool = False, user: UserModel = None)
"icon": function.meta.manifest.get("icon_url", None)
or getattr(module, "icon_url", None)
or getattr(module, "icon", None),
"has_user_valves": hasattr(module, "UserValves"),
}
]