Update ollama.py

Missing await in coroutine

causing 500 errors on /ollama/api/tags since v0.5.0
This commit is contained in:
Jonathan Respeto 2025-01-28 18:27:41 -05:00 committed by GitHub
parent b72150c881
commit b4be58f6b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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