forked from open-webui/open-webui
		
	Merge pull request #1534 from lainedfles/ollama-pull-qol
feat: small change to support ollama pull QOL
This commit is contained in:
		
						commit
						b40054c54d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -139,7 +139,7 @@ | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	const pullModelHandler = async () => { | 	const pullModelHandler = async () => { | ||||||
| 		const sanitizedModelTag = modelTag.trim(); | 		const sanitizedModelTag = modelTag.trim().replace(/^ollama\s+(run|pull)\s+/, ''); | ||||||
| 		if (modelDownloadStatus[sanitizedModelTag]) { | 		if (modelDownloadStatus[sanitizedModelTag]) { | ||||||
| 			toast.error( | 			toast.error( | ||||||
| 				$i18n.t(`Model '{{modelTag}}' is already in queue for downloading.`, { | 				$i18n.t(`Model '{{modelTag}}' is already in queue for downloading.`, { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Jaeryang Baek
						Timothy Jaeryang Baek