Commit 740b6f5c authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: pull model

parent 9a6cbafd
...@@ -158,12 +158,14 @@ ...@@ -158,12 +158,14 @@
return; return;
} }
const [res, controller] = await pullModel(localStorage.token, sanitizedModelTag, '0').catch( const [res, controller] = await pullModel(
(error) => { localStorage.token,
toast.error(error); sanitizedModelTag,
return null; selectedOllamaUrlIdx
} ).catch((error) => {
); toast.error(error);
return null;
});
if (res) { if (res) {
const reader = res.body const reader = res.body
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment