Merge pull request #9059 from jrespeto/jrespeto-patch-1

fix:  Update ollama.py - Missing await in coroutine
This commit is contained in:
Timothy Jaeryang Baek 2025-01-29 11:39:42 -08:00 committed by GitHub
commit 84c700b92c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -489,7 +489,7 @@ async def get_models(
raise HTTPException(status_code=500, detail=error_detail) raise HTTPException(status_code=500, detail=error_detail)
if user.role == "user" and not BYPASS_MODEL_ACCESS_CONTROL: if user.role == "user" and not BYPASS_MODEL_ACCESS_CONTROL:
models["data"] = get_filtered_models(models, user) models["data"] = await get_filtered_models(models, user)
return models return models