ソースを参照

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:
     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
     return models