diff --git a/src/routes/(app)/workspace/models/create/+page.svelte b/src/routes/(app)/workspace/models/create/+page.svelte index 86b65f708..532b31dd7 100644 --- a/src/routes/(app)/workspace/models/create/+page.svelte +++ b/src/routes/(app)/workspace/models/create/+page.svelte @@ -124,6 +124,18 @@ id = model.id; + if (model.info.base_model_id) { + const base_model = $models + .filter((m) => !m?.preset) + .find((m) => m.id === model.info.base_model_id); + + console.log('base_model', base_model); + + if (!base_model) { + model.info.base_model_id = null; + } + } + params = { ...params, ...model?.info?.params }; params.stop = params?.stop ? (params?.stop ?? []).join(',') : null; @@ -133,6 +145,8 @@ ...info, ...model.info }; + + console.log(info); }; onMount(async () => {