mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
refac
This commit is contained in:
parent
3ba7b6f0e5
commit
f8f36f298a
@ -290,10 +290,10 @@ async def get_all_models_raw() -> list:
|
|||||||
else:
|
else:
|
||||||
api_config = app.state.config.OPENAI_API_CONFIGS.get(url, {})
|
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", [])
|
model_ids = api_config.get("model_ids", [])
|
||||||
|
|
||||||
if enabled:
|
if enable:
|
||||||
if len(model_ids) == 0:
|
if len(model_ids) == 0:
|
||||||
tasks.append(
|
tasks.append(
|
||||||
aiohttp_get(
|
aiohttp_get(
|
||||||
|
Loading…
Reference in New Issue
Block a user