mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
refac
This commit is contained in:
parent
68a47f6a9f
commit
b16c4bc1df
@ -1103,7 +1103,7 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u
|
||||
if model["owned_by"] == "arena":
|
||||
model_ids = model.get("info", {}).get("meta", {}).get("model_ids")
|
||||
filter_mode = model.get("info", {}).get("meta", {}).get("filter_mode")
|
||||
if filter_mode == 'exclude':
|
||||
if model_ids and filter_mode == 'exclude':
|
||||
model_ids = [
|
||||
model["id"]
|
||||
for model in await get_all_models()
|
||||
|
Loading…
Reference in New Issue
Block a user