fix(mm): do not attempt to reinstall starter model dependencies

This commit is contained in:
psychedelicious 2024-03-20 09:31:31 +11:00
parent 1069303309
commit 97fe6e483d

View File

@ -796,6 +796,12 @@ async def get_starter_models() -> list[StarterModel]:
for model in starter_models:
if model.source in installed_model_sources:
model.is_installed = True
# Remove already-installed dependencies
missing_deps: list[str] = []
for dep in model.dependencies or []:
if dep not in installed_model_sources:
missing_deps.append(dep)
model.dependencies = missing_deps
return starter_models