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; return;
} }
const [res, controller] = await pullModel(localStorage.token, sanitizedModelTag, '0').catch( const [res, controller] = await pullModel(
(error) => { localStorage.token,
sanitizedModelTag,
selectedOllamaUrlIdx
).catch((error) => {
toast.error(error); toast.error(error);
return null; return null;
} });
);
if (res) { if (res) {
const reader = res.body const reader = res.body