浏览代码

Merge pull request #1163 from joequant/main

fix typo in uploading blob to ollama
Timothy Jaeryang Baek 1 年之前
父节点
当前提交
7cef008b44
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/apps/web/routers/utils.py

+ 1 - 1
backend/apps/web/routers/utils.py

@@ -75,7 +75,7 @@ async def download_file_stream(url, file_path, file_name, chunk_size=1024 * 1024
                     hashed = calculate_sha256(file)
                     hashed = calculate_sha256(file)
                     file.seek(0)
                     file.seek(0)
 
 
-                    url = f"{OLLAMA_BASE_URLS[0]}/blobs/sha256:{hashed}"
+                    url = f"{OLLAMA_BASE_URLS[0]}/api/blobs/sha256:{hashed}"
                     response = requests.post(url, data=file)
                     response = requests.post(url, data=file)
 
 
                     if response.ok:
                     if response.ok: