diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index baa2f6c4e..15b054024 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -139,7 +139,7 @@ }; const pullModelHandler = async () => { - const sanitizedModelTag = modelTag.trim(); + const sanitizedModelTag = modelTag.trim().replace(/^ollama\s+(run|pull)\s+/, ''); if (modelDownloadStatus[sanitizedModelTag]) { toast.error( $i18n.t(`Model '{{modelTag}}' is already in queue for downloading.`, {