fix: base model verification

This commit is contained in:
Timothy J. Baek 2024-06-08 17:21:23 -07:00
parent d1da3dde65
commit e274a0dc3e

View File

@ -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 () => {