mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
refac
This commit is contained in:
parent
e8bdbd716b
commit
b6d5055228
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue