fix: model edit

This commit is contained in:
Timothy J. Baek 2024-05-25 01:01:50 -07:00
parent bd6ccf8c15
commit 1fbcf13371

View File

@ -103,10 +103,11 @@
info.base_model_id = `${info.base_model_id}:latest`; info.base_model_id = `${info.base_model_id}:latest`;
} }
params = { ...params, ...model?.info?.params };
if (model?.info?.meta?.capabilities) { if (model?.info?.meta?.capabilities) {
capabilities = { ...capabilities, ...model?.info?.meta?.capabilities }; capabilities = { ...capabilities, ...model?.info?.meta?.capabilities };
} }
console.log(model); console.log(model);
} else { } else {
goto('/workspace/models'); goto('/workspace/models');