This commit is contained in:
Timothy Jaeryang Baek 2024-11-11 22:03:57 -08:00
parent 3ba7b6f0e5
commit f8f36f298a

View File

@ -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(