From 92cc87d908908435031487610ee89fcf42e6e14d Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 22 Mar 2024 00:58:38 -0700 Subject: [PATCH] fix: ollama upload url --- backend/apps/ollama/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/ollama/main.py b/backend/apps/ollama/main.py index 57b4bbed0..822977293 100644 --- a/backend/apps/ollama/main.py +++ b/backend/apps/ollama/main.py @@ -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: