fix: pull model

This commit is contained in:
Timothy J. Baek 2024-07-04 00:42:18 -07:00
parent 9a6cbafdef
commit 740b6f5c17

View File

@ -158,12 +158,14 @@
return;
}
const [res, controller] = await pullModel(localStorage.token, sanitizedModelTag, '0').catch(
(error) => {
toast.error(error);
return null;
}
);
const [res, controller] = await pullModel(
localStorage.token,
sanitizedModelTag,
selectedOllamaUrlIdx
).catch((error) => {
toast.error(error);
return null;
});
if (res) {
const reader = res.body