From b6d50552288cd5a9f57e871f3cad72b448fc246c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 31 Aug 2026 00:35:17 -0400 Subject: [PATCH] refac --- backend/open_webui/models/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/models/models.py b/backend/open_webui/models/models.py index 0f3b731ea4..17083e4b42 100755 --- a/backend/open_webui/models/models.py +++ b/backend/open_webui/models/models.py @@ -180,7 +180,7 @@ class ModelForm(BaseModel): name: str meta: ModelMeta params: ModelParams - access_grants: list[dict | None] = None + access_grants: list[dict] | None = None is_active: bool = True @@ -191,7 +191,7 @@ class ModelsTable: async def _to_model_model( self, model: Model, - access_grants: list[AccessGrantModel | None] = None, + access_grants: list[AccessGrantModel] | None = None, db: AsyncSession | None = None, ) -> ModelModel: if isinstance(model.meta, dict):