Update Selector.svelte
This commit is contained in:
@@ -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]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user