From 1fbcf1337105cb08c762f5b0e29444960dfae098 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 25 May 2024 01:01:50 -0700 Subject: [PATCH] fix: model edit --- src/routes/(app)/workspace/models/edit/+page.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/(app)/workspace/models/edit/+page.svelte b/src/routes/(app)/workspace/models/edit/+page.svelte index c8fa2ecb2..63ca1fa12 100644 --- a/src/routes/(app)/workspace/models/edit/+page.svelte +++ b/src/routes/(app)/workspace/models/edit/+page.svelte @@ -103,10 +103,11 @@ info.base_model_id = `${info.base_model_id}:latest`; } + params = { ...params, ...model?.info?.params }; + if (model?.info?.meta?.capabilities) { capabilities = { ...capabilities, ...model?.info?.meta?.capabilities }; } - console.log(model); } else { goto('/workspace/models');