diff --git a/backend/open_webui/apps/openai/main.py b/backend/open_webui/apps/openai/main.py index 42f4388f5..ee3443ac9 100644 --- a/backend/open_webui/apps/openai/main.py +++ b/backend/open_webui/apps/openai/main.py @@ -302,6 +302,8 @@ async def get_all_models_responses() -> list: } tasks.append(asyncio.ensure_future(asyncio.sleep(0, model_list))) + else: + tasks.append(asyncio.ensure_future(asyncio.sleep(0, None))) responses = await asyncio.gather(*tasks) diff --git a/src/lib/components/admin/Settings/Models.svelte b/src/lib/components/admin/Settings/Models.svelte index c807e87c7..b7084d8ce 100644 --- a/src/lib/components/admin/Settings/Models.svelte +++ b/src/lib/components/admin/Settings/Models.svelte @@ -186,7 +186,7 @@
{#if models.length > 0} - {#each filteredModels as model (model.id)} + {#each filteredModels as model, modelIdx (`${model.id}-${modelIdx}`)}