mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 03:18:03 +00:00
fix: Update openai.py
need to await get_filtered_models
This commit is contained in:
parent
b4be58f6b6
commit
a32782e527
@ -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 New Issue
Block a user