This commit is contained in:
Timothy Jaeryang Baek 2026-09-14 17:18:19 -04:00
parent 58078ab304
commit dc98e3023f

View file

@ -40,15 +40,23 @@
const res = await updateModelById(localStorage.token, modelInfo.id, modelInfo);
if (res) {
await models.set(
await getModels(
localStorage.token,
$config?.features?.enable_direct_connections && ($settings?.directConnections ?? null)
)
);
toast.success($i18n.t('Model updated successfully'));
await goto('/workspace/models');
try {
await models.set(
await getModels(
localStorage.token,
$config?.features?.enable_direct_connections
? ($settings?.directConnections ?? null)
: null
)
);
toast.success($i18n.t('Model updated successfully'));
await goto('/workspace/models');
} catch (error) {
toast.error(`${error}`);
}
return true;
}
return false;
};
</script>