浏览代码

Update ollama.py

Missing await in coroutine

causing 500 errors on /ollama/api/tags since v0.5.0
Jonathan Respeto 3 月之前
父节点
当前提交
b4be58f6b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/routers/ollama.py

+ 1 - 1
backend/open_webui/routers/ollama.py

@@ -395,7 +395,7 @@ async def get_ollama_tags(
             )
 
     if user.role == "user" and not BYPASS_MODEL_ACCESS_CONTROL:
-        models["models"] = get_filtered_models(models, user)
+        models["models"] = await get_filtered_models(models, user)
 
     return models