mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
3ba7b6f0e5
commit
f8f36f298a
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue