Merge pull request #1534 from lainedfles/ollama-pull-qol

feat: small change to support ollama pull QOL
This commit is contained in:
Timothy Jaeryang Baek 2024-04-13 14:39:13 -07:00 committed by GitHub
commit b40054c54d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.`, {