mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 14:52:23 +00:00
wip
This commit is contained in:
parent
eb9733e99f
commit
d9ffcea764
@ -1914,8 +1914,8 @@ async def get_models(request: Request, user=Depends(get_verified_user)):
|
||||
|
||||
|
||||
@app.get("/api/models/base")
|
||||
async def get_base_models(user=Depends(get_admin_user)):
|
||||
models = await get_all_base_models()
|
||||
async def get_base_models(request: Request, user=Depends(get_admin_user)):
|
||||
models = await get_all_base_models(request)
|
||||
|
||||
# Filter out arena models
|
||||
models = [model for model in models if not model.get("arena", False)]
|
||||
|
Loading…
Reference in New Issue
Block a user