mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-13 01:02:25 -06:00
refac
This commit is contained in:
@@ -182,7 +182,7 @@ async def get_all_models(request, refresh: bool = False, user: UserModel = None)
|
||||
model['action_ids'] = action_ids
|
||||
model['filter_ids'] = filter_ids
|
||||
else:
|
||||
models.remove(model)
|
||||
models = [m for m in models if m is not model]
|
||||
|
||||
elif custom_model.is_active:
|
||||
if custom_model.id in existing_ids:
|
||||
|
||||
Reference in New Issue
Block a user