mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: Update openai.py
need to await get_filtered_models
This commit is contained in:
parent
b4be58f6b6
commit
a32782e527
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue