This commit is contained in:
Timothy Jaeryang Baek committed 2026-02-22 15:41:10 -06:00
1 parent ad9fbfc1af
commit 3c54863414
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -512,6 +512,7 @@ async def update_model_by_id(
class ModelAccessGrantsForm(BaseModel):
id: str
name: Optional[str] = None
access_grants: list[dict]
@@ -535,7 +536,7 @@ async def update_model_access_by_id(
model = Models.insert_new_model(
ModelForm(
id=form_data.id,
name=form_data.id,
name=form_data.name or form_data.id,
meta=ModelMeta(),
params=ModelParams(),
),