From f8f36f298aeab9997d5c05fa6e63ef95ae569bea Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 11 Nov 2024 22:03:57 -0800 Subject: [PATCH] refac --- backend/open_webui/apps/openai/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/apps/openai/main.py b/backend/open_webui/apps/openai/main.py index 5a78cd52b..9c7b37911 100644 --- a/backend/open_webui/apps/openai/main.py +++ b/backend/open_webui/apps/openai/main.py @@ -290,10 +290,10 @@ async def get_all_models_raw() -> list: else: api_config = app.state.config.OPENAI_API_CONFIGS.get(url, {}) - enabled = api_config.get("enabled", True) + enable = api_config.get("enable", True) model_ids = api_config.get("model_ids", []) - if enabled: + if enable: if len(model_ids) == 0: tasks.append( aiohttp_get(