Commit 922628c1 authored by Self Denial's avatar Self Denial
Browse files

feat: small change to support ollama pull QOL

Use regex replace during trim "sanitize" to support `ollama run ` or `ollama pull ` syntax.
parent 51afb1e3
......@@ -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.`, {
......
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