Commit 91dda240 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

Update Selector.svelte

parent 6238495d
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
: items; : items;
const pullModelHandler = async () => { const pullModelHandler = async () => {
const sanitizedModelTag = searchValue.trim(); const sanitizedModelTag = searchValue.trim().replace(/^ollama\s+(run|pull)\s+/, '');
console.log($MODEL_DOWNLOAD_POOL); console.log($MODEL_DOWNLOAD_POOL);
if ($MODEL_DOWNLOAD_POOL[sanitizedModelTag]) { if ($MODEL_DOWNLOAD_POOL[sanitizedModelTag]) {
......
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