forked from open-webui/open-webui
		
	fix: ollama upload url
This commit is contained in:
		
							parent
							
								
									9e37d6edcc
								
							
						
					
					
						commit
						92cc87d908
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1060,7 +1060,7 @@ def upload_model(file: UploadFile = File(...), url_idx: Optional[int] = None): | |||
|                     hashed = calculate_sha256(f) | ||||
|                     f.seek(0) | ||||
| 
 | ||||
|                     url = f"{ollama_url}/blobs/sha256:{hashed}" | ||||
|                     url = f"{ollama_url}/api/blobs/sha256:{hashed}" | ||||
|                     response = requests.post(url, data=f) | ||||
| 
 | ||||
|                     if response.ok: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek