Commit 92cc87d9 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: ollama upload url

parent 9e37d6ed
......@@ -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:
......
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